[U-Boot] [PATCH v2] usb: increase non-bulk timeout for slow chipsets.

Jason Cooper u-boot at lakedaemon.net
Sun Jul 31 22:09:58 CEST 2011


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 at lakedaemon.net>
---
Changes since v1:
	- Further research identified the commit (96820a35) causing the problem
	  and revealed the former timeout of 1000.  Adjusted patch to use former
	  timeout.
	- Removed RFC.

 include/usb.h |    2 +-
 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 {
-- 
1.7.0.4



More information about the U-Boot mailing list