Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
usb: dwc3: gadget: stop gadget even if fail to stop ctrl
In dwc3_gadget_suspend(), if fail to stop DWC3 controller, and return without do __dwc3_gadget_stop(), it will not disable ep0 and ep1, and the dep->flags stays in the state DWC3_EP_ENABLED, this will casue gadget connect failed. A typical case is: DWC3 works as DRD mode, fist plug in OTG HOST cable and works as HOST mode, then plug out HOST calbe, after this operation, it will do runtime supend -> dwc3_gadget_suspend() -> dwc3_gadget_run_stop() fail -> return without stop gadget, and then plug in OTG device cable, fail to connect with PC. Change-Id: I79daff8a9e8175cd13ac57e2abc63d4e5f694b1c Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
- Loading branch information