rockchip: uboot: add small delay to dwc2 usb driver that fixes occasional hangup during bootstrap from USB

This commit is contained in:
Paolo Sabatino 2021-03-16 17:20:54 +00:00
parent 06a864a39c
commit 02085da1a9

View File

@ -0,0 +1,13 @@
diff --git a/drivers/usb/host/dwc2.c b/drivers/usb/host/dwc2.c
index cefe9d83..f7288203 100644
--- a/drivers/usb/host/dwc2.c
+++ b/drivers/usb/host/dwc2.c
@@ -440,6 +440,8 @@ static void dwc_otg_core_init(struct dwc2_priv *priv)
writel(usbcfg, &regs->gusbcfg);
+ mdelay(10);
+
/* Program the GAHBCFG Register. */
switch (readl(&regs->ghwcfg2) & DWC2_HWCFG2_ARCHITECTURE_MASK) {
case DWC2_HWCFG2_ARCHITECTURE_SLAVE_ONLY: