Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Feb 2009 22:52:10 GMT
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 157613 for review
Message-ID:  <200902122252.n1CMqAXN031887@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=157613

Change 157613 by hselasky@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);
 



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