mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 06:03:36 -04:00
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:
parent
6544d65e83
commit
9f07178ded
1 changed files with 1 additions and 2 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Reference in a new issue