[U-Boot] [PATCH] usb: Add delay to fix USB 2.0 stick enumeration failure on LS208xA

Ran Wang ran.wang_1 at nxp.com
Mon Nov 13 09:00:38 UTC 2017


Force delay 10ms between each control messages to fix Transcend
and Kingston DT 101 G2 USB2.0 stick fail to be enumerated by LS208xA.

Signed-off-by: Ran Wang <ran.wang_1 at nxp.com>
---
 common/usb.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/common/usb.c b/common/usb.c
index 0904259757..eeacc80b9e 100644
--- a/common/usb.c
+++ b/common/usb.c
@@ -223,6 +223,9 @@ int usb_control_msg(struct usb_device *dev, unsigned int pipe,
 		return -EINVAL;
 	}
 
+	/* Add delay to support more devices' enumeration */
+	mdelay(10);
+
 	/* set setup command */
 	setup_packet->requesttype = requesttype;
 	setup_packet->request = request;
-- 
2.14.1



More information about the U-Boot mailing list