From 92faf03fe9010181fd261542547817b96ae0bb93 Mon Sep 17 00:00:00 2001 From: thompsa Date: Fri, 27 Mar 2009 16:56:01 +0000 Subject: 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 --- sys/dev/usb/controller/ohci.c | 7 +++++-- 1 file 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 { -- cgit v1.1