summaryrefslogtreecommitdiff
path: root/include/usb.h
diff options
context:
space:
mode:
authorJason Cooper <u-boot@lakedaemon.net>2011-07-31 20:09:58 +0000
committerRemy Bohmer <linux@bohmer.net>2011-08-08 22:34:57 +0200
commit80b350a7ab83653242033877c203940db7ecc0e5 (patch)
tree5248acde07f673924eac01241b380a59d542faf5 /include/usb.h
parent2a94dda0e7c95de19356b78ad59808ee1e67ae27 (diff)
downloadu-boot-imx-80b350a7ab83653242033877c203940db7ecc0e5.zip
u-boot-imx-80b350a7ab83653242033877c203940db7ecc0e5.tar.gz
u-boot-imx-80b350a7ab83653242033877c203940db7ecc0e5.tar.bz2
usb: increase non-bulk timeout for slow chipsets.
If you take a look at 96820a35, you'll see the original timeout was CONFIG_SYS_HZ. Which is 1000. After the mentioned change, non-bulk timeout was changed to 100. This causes timeout failures on the dreamplug platform when trying to initialize the usb microsd reader. Signed-off-by: Jason Cooper <u-boot@lakedaemon.net> Acked-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'include/usb.h')
-rw-r--r--include/usb.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/usb.h b/include/usb.h
index 53603a5..06170cd 100644
--- a/include/usb.h
+++ b/include/usb.h
@@ -46,7 +46,7 @@
* This is the timeout to allow for submitting an urb in ms. We allow more
* time for a BULK device to react - some are slow.
*/
-#define USB_TIMEOUT_MS(pipe) (usb_pipebulk(pipe) ? 5000 : 100)
+#define USB_TIMEOUT_MS(pipe) (usb_pipebulk(pipe) ? 5000 : 1000)
/* device request (setup) */
struct devrequest {