svn commit: r190471 - head/sys/dev/usb/controller
Andrew Thompson
thompsa at FreeBSD.org
Fri Mar 27 09:56:02 PDT 2009
Author: thompsa
Date: Fri Mar 27 16:56:01 2009
New Revision: 190471
URL: http://svn.freebsd.org/changeset/base/190471
Log:
The buffer start and end phys addresses should be 0x0 for an OHCI zero length
packet, this fixes LS/FS devices on the Gateworks 2348 XScale board.
Reviewed by: HPS
Modified:
head/sys/dev/usb/controller/ohci.c
Modified: head/sys/dev/usb/controller/ohci.c
==============================================================================
--- head/sys/dev/usb/controller/ohci.c Fri Mar 27 15:57:52 2009 (r190470)
+++ head/sys/dev/usb/controller/ohci.c Fri Mar 27 16:56:01 2009 (r190471)
@@ -1350,9 +1350,12 @@ restart:
temp->td_flags &= ~htole32(OHCI_TD_TOGGLE_MASK);
if (average == 0) {
-
+ /*
+ * The buffer start and end phys addresses should be
+ * 0x0 for a zero length packet.
+ */
td->td_cbp = 0;
- td->td_be = ~0;
+ td->td_be = 0;
td->len = 0;
} else {
More information about the svn-src-all
mailing list