summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorthompsa <thompsa@FreeBSD.org>2009-03-27 16:56:01 +0000
committerthompsa <thompsa@FreeBSD.org>2009-03-27 16:56:01 +0000
commit92faf03fe9010181fd261542547817b96ae0bb93 (patch)
treed9f615314f1f4992e43292385be71181b5a2be92
parent642970135f0df8e97f04f249396bb248c075dd48 (diff)
downloadFreeBSD-src-92faf03fe9010181fd261542547817b96ae0bb93.zip
FreeBSD-src-92faf03fe9010181fd261542547817b96ae0bb93.tar.gz
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
-rw-r--r--sys/dev/usb/controller/ohci.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/dev/usb/controller/ohci.c b/sys/dev/usb/controller/ohci.c
index ad203e9..f99fffb 100644
--- a/sys/dev/usb/controller/ohci.c
+++ b/sys/dev/usb/controller/ohci.c
@@ -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 {
OpenPOWER on IntegriCloud