summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRan Wang <ran.wang_1@nxp.com>2017-11-03 02:42:04 (GMT)
committerPrabhakar Kushwaha <prabhakar.kushwaha@nxp.com>2018-01-10 03:31:40 (GMT)
commit704ff63c118abdac109744da559ae71a40c31278 (patch)
tree5a51af31269fc56e3b6262ff2aa86cbc7583d362
parentff9e27619661f260dd94942e28b71af41b25c384 (diff)
downloadu-boot-704ff63c118abdac109744da559ae71a40c31278.tar.xz
usb: Add delay to fix USB 2.0 stick enumeration failure on LS208xA
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@nxp.com>
-rw-r--r--common/usb.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/usb.c b/common/usb.c
index 8d27bc7..d8b484a 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;