usb: xhci-plat: Add runtime autosuspend delay
When 2.0 Hub device is connected to a suspended root hub, pm_runtime_idle/suspend is executed right after pm_runtime_resume resulting in xhci_suspend before connect interrupt is properly handled. xhci_suspend() clears the HCD_FLAG_HW_ACCESSIBLE flag as a result when xhci_irq() comes it does not get handled resulting into interrupt storm causing watchdog bark. Even if xhci interrupt is allowed to handle upon xhci suspend causing device enumeration failure as controller becomes unresponsive and enable slot command times out and phy does not go to IN L2. Fix this issue by adding 1 second autosuspend delay which aborts the pm_runtime_idle() to prevent xhci_suspend()in the middle of device enumeration. CRs-Fixed: 847142 Change-Id: Icbcab76510b732731d61fc212d9079f4c9a92e5f Signed-off-by:Hemant Kumar <hemantk@codeaurora.org> Signed-off-by:
Mayank Rana <mrana@codeaurora.org>
Loading
Please register or sign in to comment