Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dc281958 authored by Hemant Kumar's avatar Hemant Kumar Committed by Mayank Rana
Browse files

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: default avatarHemant Kumar <hemantk@codeaurora.org>
Signed-off-by: default avatarMayank Rana <mrana@codeaurora.org>
parent c67f84f6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment