]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
usb: increase non-bulk timeout for slow chipsets.
authorJason Cooper <u-boot@lakedaemon.net>
Sun, 31 Jul 2011 20:09:58 +0000 (20:09 +0000)
committerRemy Bohmer <linux@bohmer.net>
Mon, 8 Aug 2011 20:34:57 +0000 (22:34 +0200)
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>
include/usb.h

index 53603a5582256bd90ae47f2dbc7cccab5b3d0010..06170cdc5a51a45524badfa39c38adb2ab1956d8 100644 (file)
@@ -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 {