rockchip: uboot: add small delay to dwc2 usb driver that fixes occasional hangup during bootstrap from USB
This commit is contained in:
parent
06a864a39c
commit
02085da1a9
13
patch/u-boot/u-boot-rockchip/zzz-usb-otg-fix.patch
Normal file
13
patch/u-boot/u-boot-rockchip/zzz-usb-otg-fix.patch
Normal 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, ®s->gusbcfg);
|
||||
|
||||
+ mdelay(10);
|
||||
+
|
||||
/* Program the GAHBCFG Register. */
|
||||
switch (readl(®s->ghwcfg2) & DWC2_HWCFG2_ARCHITECTURE_MASK) {
|
||||
case DWC2_HWCFG2_ARCHITECTURE_SLAVE_ONLY:
|
||||
Loading…
Reference in New Issue
Block a user