[PATCH 5/6] usb: dwc3: gadget: Add delay after software writes DCTL in dwc3_gadget_run_stop()

Alice Guo (OSS) alice.guo at oss.nxp.com
Sun Jul 20 00:13:56 CEST 2025


From: Alice Guo <alice.guo at nxp.com>

When using NXP UUU to download flash.bin to i.MX95 19x19 evk board, it
will get stuck in a loop at sdp_init() without this change.

Signed-off-by: Alice Guo <alice.guo at nxp.com>
---
 drivers/usb/dwc3/gadget.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c
index 2b01113d54c..6b2b25c7aa5 100644
--- a/drivers/usb/dwc3/gadget.c
+++ b/drivers/usb/dwc3/gadget.c
@@ -1423,6 +1423,7 @@ static int dwc3_gadget_run_stop(struct dwc3 *dwc, int is_on, int suspend)
 	}
 
 	dwc3_writel(dwc->regs, DWC3_DCTL, reg);
+	mdelay(2);
 
 	do {
 		reg = dwc3_readl(dwc->regs, DWC3_DSTS);

-- 
2.43.0



More information about the U-Boot mailing list