usb: dwc3: otg: Add delay after entering host mode
When a USB peripheral is connected via an A-type cable the OTG
state machine first has to trigger the role-switch to host mode.
However, the pm_runtime_put_sync() call may sometimes invoke the
controller's runtime suspend immediately, before the device has
had a chance to be detected by the just-started host controller
driver. Replace with a 1 sec delay after the initial transition
to OTG_STATE_A_HOST to allow additional time for detection.
CRs-fixed: 614213
Change-Id: I021fa0ba794bb74451bc097ed48db3821b38b7ca
Signed-off-by:
Jack Pham <jackp@codeaurora.org>
Loading
Please register or sign in to comment