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

Skip to content
Commit ddf94e1e authored by Pavankumar Kondeti's avatar Pavankumar Kondeti Committed by Gerrit - the friendly Code Review server
Browse files

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: default avatarPavankumar Kondeti <pkondeti@codeaurora.org>
parent d1e8110e
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