[U-Boot] [PATCH 09/16] usb: ohci: Fix ctrl in messages with a data-len of 0
Hans de Goede
hdegoede at redhat.com
Tue May 5 23:56:12 CEST 2015
Fix taken from the Linux kernel ohci driver.
Signed-off-by: Hans de Goede <hdegoede at redhat.com>
---
drivers/usb/host/ohci-hcd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/usb/host/ohci-hcd.c b/drivers/usb/host/ohci-hcd.c
index 15aea98..02aa7f3 100644
--- a/drivers/usb/host/ohci-hcd.c
+++ b/drivers/usb/host/ohci-hcd.c
@@ -988,7 +988,7 @@ static void td_submit_job(ohci_t *ohci, struct usb_device *dev,
}
/* Status phase */
- info = usb_pipeout(pipe)?
+ info = (usb_pipeout(pipe) || data_len == 0) ?
TD_CC | TD_DP_IN | TD_T_DATA1:
TD_CC | TD_DP_OUT | TD_T_DATA1;
td_fill(ohci, info, data, 0, dev, cnt++, urb);
--
2.3.6
More information about the U-Boot
mailing list