From b3e9a2aaac3b9fe5d6ff9190c773fb0fde5e5f05 Mon Sep 17 00:00:00 2001 From: Andrew Thompson Date: Fri, 27 Mar 2009 16:56:01 +0000 Subject: [PATCH] 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 ad203e94d8d..f99fffbde36 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 {