MLK-23584 usb: dwc3: core: do disconnect when do soft reset

There might usb connection to host in device mode when we do dwc3
core init, so explicitly clear RUN_STOP to disconnect from host,
with that we can start a new session afterwards, we found this
problem when use UUU to flash image with Linux kernel.

Reviewed-by: Fugang Duan <fugang.duan@nxp.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
This commit is contained in:
Peter Chen 2020-03-13 21:27:49 +08:00 committed by Li Jun
parent d609c0e166
commit 1652f55722
1 changed files with 1 additions and 0 deletions

View File

@ -250,6 +250,7 @@ static int dwc3_core_soft_reset(struct dwc3 *dwc)
reg = dwc3_readl(dwc->regs, DWC3_DCTL);
reg |= DWC3_DCTL_CSFTRST;
reg &= ~DWC3_DCTL_RUN_STOP;
dwc3_writel(dwc->regs, DWC3_DCTL, reg);
/*