[U-Boot] [PATCH] usb: increase USB control timeout value

Christian Gmeiner christian.gmeiner at gmail.com
Thu Nov 21 10:10:24 UTC 2019


Increase USB control timeout value to 5000 milliseconds, matching
the value used in Linux kernel. This improves communication
stability with some USB devices.

In the concrete case a Apacer AP8GAH322B gets not deteced in a
silent console configuration.

Signed-off-by: Christian Gmeiner <christian.gmeiner at gmail.com>
---
 include/usb.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/usb.h b/include/usb.h
index bcad552f85..cd3f1d8225 100644
--- a/include/usb.h
+++ b/include/usb.h
@@ -38,7 +38,7 @@
 #define USB_MAXCHILDREN			8	/* This is arbitrary */
 #define USB_MAX_HUB			16
 
-#define USB_CNTL_TIMEOUT 100 /* 100ms timeout */
+#define USB_CNTL_TIMEOUT 5000 /* 5000ms timeout */
 
 /*
  * This is the timeout to allow for submitting an urb in ms. We allow more
-- 
2.23.0



More information about the U-Boot mailing list