diff options
author | Simon Glass <sjg@chromium.org> | 2011-02-07 14:42:16 -0800 |
---|---|---|
committer | Remy Bohmer <linux@bohmer.net> | 2011-02-19 20:32:34 +0100 |
commit | 96820a35873b4c005f732432c6a168decc9d22b9 (patch) | |
tree | 181c14ab100fc6075409b23b43b00b363dacdc4e /drivers/usb/host/ohci-hcd.c | |
parent | efb063390d2d1e712c2c8110911616244d562c4b (diff) | |
download | u-boot-imx-96820a35873b4c005f732432c6a168decc9d22b9.zip u-boot-imx-96820a35873b4c005f732432c6a168decc9d22b9.tar.gz u-boot-imx-96820a35873b4c005f732432c6a168decc9d22b9.tar.bz2 |
Fix EHCI usb submit timeout and unify with OHCI
Changed both to use a common timeout for URB submission, since they were using
different values and EHCI's was too short.
Also fixed EHCI to actually check if urb submission succeeded, rather than
silently continuing into the weeds.
Change-Id: I7f71499ffaa05187d8e5618db2419e1606007b82
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/usb/host/ohci-hcd.c')
-rw-r--r-- | drivers/usb/host/ohci-hcd.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/usb/host/ohci-hcd.c b/drivers/usb/host/ohci-hcd.c index d246978..bc8bb20 100644 --- a/drivers/usb/host/ohci-hcd.c +++ b/drivers/usb/host/ohci-hcd.c @@ -1524,12 +1524,7 @@ int submit_common_msg(struct usb_device *dev, unsigned long pipe, void *buffer, /* ohci_dump_status(&gohci); */ #endif - /* allow more time for a BULK device to react - some are slow */ -#define BULK_TO 5000 /* timeout in milliseconds */ - if (usb_pipebulk(pipe)) - timeout = BULK_TO; - else - timeout = 1000; + timeout = USB_TIMEOUT_MS(pipe); /* wait for it to complete */ for (;;) { |