PERFORCE change 157613 for review

Hans Petter Selasky hselasky at FreeBSD.org
Thu Feb 12 14:52:12 PST 2009


http://perforce.freebsd.org/chv.cgi?CH=157613

Change 157613 by hselasky at hselasky_laptop001 on 2009/02/12 22:52:05

	
	USB WLAN: Add slight delay to resolve possible
	race inside the dongle firmware.

Affected files ...

.. //depot/projects/usb/src/sys/dev/usb2/wlan/if_rum2.c#40 edit
.. //depot/projects/usb/src/sys/dev/usb2/wlan/if_ural2.c#39 edit
.. //depot/projects/usb/src/sys/dev/usb2/wlan/if_zyd2.c#40 edit

Differences ...

==== //depot/projects/usb/src/sys/dev/usb2/wlan/if_rum2.c#40 (text+ko) ====

@@ -2490,6 +2490,9 @@
 	while (usb2_transfer_pending(sc->sc_xfer[RUM_BULK_WR]))
 		cv_wait(&sc->sc_cmd_cv, &sc->sc_mtx);
 
+	/* make sure any hardware buffers are emptied */
+	rum_pause(sc, hz / 1000);
+
 	/* execute task */
 	task->func(pm);
 

==== //depot/projects/usb/src/sys/dev/usb2/wlan/if_ural2.c#39 (text+ko) ====

@@ -2418,6 +2418,9 @@
 	while (usb2_transfer_pending(sc->sc_xfer[URAL_BULK_WR]))
 		cv_wait(&sc->sc_cmd_cv, &sc->sc_mtx);
 
+	/* make sure any hardware FIFOs are emptied */
+	ural_pause(sc, hz / 1000);
+
 	/* execute task */
 	task->func(pm);
 

==== //depot/projects/usb/src/sys/dev/usb2/wlan/if_zyd2.c#40 (text+ko) ====

@@ -3127,6 +3127,9 @@
 	while (usb2_transfer_pending(sc->sc_xfer[ZYD_BULK_WR]))
 		cv_wait(&sc->sc_cmd_cv, &sc->sc_mtx);
 
+	/* make sure any hardware FIFOs are emptied */
+	usb2_pause_mtx(&sc->sc_mtx, hz / 1000);
+
 	/* execute task */
 	task->func(pm);
 


More information about the p4-projects mailing list