Revert "usb: dwc3: Increase DWC3 controller halt timeout"

This reverts commit 935e842f98.

Reason for revert: dwc3_gadget_run_stop() is called from atomic context,
it's wrong to use usleep_range() there.

Change-Id: I5e25f2c1c9de0bba4b28157b6d42ef62f6706dfc
Signed-off-by: Alexander Winkowski <dereference23@outlook.com>
This commit is contained in:
Alexander Winkowski 2025-05-10 05:38:37 +00:00 • committed by Michael Bestas
commit 9f07178ded
No known key found for this signature in database
GPG key ID: CC95044519BE6669

View file

@ -2389,7 +2389,7 @@ done:
static int dwc3_gadget_run_stop(struct dwc3 *dwc, int is_on, int suspend)
{
u32 reg, reg1;
u32 timeout = 2000;
u32 timeout = 1500;
u32 saved_config = 0;
dbg_event(0xFF, "run_stop", is_on);
@ -2491,7 +2491,6 @@ static int dwc3_gadget_run_stop(struct dwc3 *dwc, int is_on, int suspend)
}
do {
usleep_range(1000, 2000);
reg = dwc3_readl(dwc->regs, DWC3_DSTS);
reg &= DWC3_DSTS_DEVCTRLHLT;
} while (--timeout && !(!is_on ^ !reg));