if_rsu hardware causes a kernel panic on removal..

Hans Petter Selasky hps at selasky.org
Thu May 22 11:51:17 UTC 2014


On 05/22/14 13:22, Idwer Vollering wrote:
> rsu0: timeout waiting for EMEM transfer

Does this patch make any difference:

=== ./if_rsu.c
==================================================================
--- ./if_rsu.c	(revision 266539)
+++ ./if_rsu.c	(local)
@@ -2220,13 +2220,13 @@
  		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;



More information about the freebsd-usb mailing list