usb: phy: msm: Fix unclocked access during host bus resume
When system is suspended in USB host mode, OTG device runtime state
becomes active. Because USB core resume the EHCI which in turn
resume the OTG to alter the attached device wakeup settings during
system suspend. OTG enters suspend as part of the system suspend but
its runtime state will be active. When system is resumed due to
non-USB activity, OTG system resume routine skips the resume. When
EHCI tries to resume the OTG in system resume routine, runtime PM
API is used to resume the OTG. The runtime resume on OTG does not
bring it out of suspend as its runtime status is still active.
EHCI thinks OTG is out of suspend and access hardware registers.
Resume the OTG in system resume routine if it is not runtime suspended
while system enters the suspend.
CRs-Fixed: 563467
Change-Id: I756e138ed9b05ee209fc0a57c147034b11ae2289
Signed-off-by:
Pavankumar Kondeti <pkondeti@codeaurora.org>
Loading
Please register or sign in to comment