Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 May 2014 12:01:43 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r266542 - head/sys/dev/usb/wlan
Message-ID:  <201405221201.s4MC1h83016678@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Thu May 22 12:01:43 2014
New Revision: 266542
URL: http://svnweb.freebsd.org/changeset/base/266542

Log:
  - Give firmware loading more time.
  
  MFC after:	3 days

Modified:
  head/sys/dev/usb/wlan/if_rsu.c

Modified: head/sys/dev/usb/wlan/if_rsu.c
==============================================================================
--- head/sys/dev/usb/wlan/if_rsu.c	Thu May 22 11:58:15 2014	(r266541)
+++ head/sys/dev/usb/wlan/if_rsu.c	Thu May 22 12:01:43 2014	(r266542)
@@ -2220,13 +2220,13 @@ rsu_load_firmware(struct rsu_softc *sc)
 		goto fail;
 	}
 	/* Wait for load to complete. */
-	for (ntries = 0; ntries != 10; ntries++) {
+	for (ntries = 0; ntries != 50; ntries++) {
 		usb_pause_mtx(&sc->sc_mtx, hz / 100);
 		reg = rsu_read_2(sc, R92S_TCR);
 		if (reg & R92S_TCR_EMEM_CODE_DONE)
 			break;
 	}
-	if (ntries == 10) {
+	if (ntries == 50) {
 		device_printf(sc->sc_dev, "timeout waiting for EMEM transfer\n");
 		error = ETIMEDOUT;
 		goto fail;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201405221201.s4MC1h83016678>