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

Commit d5f12cd4 authored by ChandanaKishori Chiluveru's avatar ChandanaKishori Chiluveru Committed by Gerrit - the friendly Code Review server
Browse files

USB: PHY: msm: Fix pm_runtime race with sm_work during boot-up



If there is any ID line change during suspend, msm_otg_irq is called
for ID status and calling  msm_otg_resume to resume the HW out of LPM
from interrupt context and disable the async_irq. This may race with
another PM runtime msm_otg_resume from android_probe context and
disable async_irq again. After this as async_irq remains disable,
OTG irq handler never called on device connect/disconnect. This
results in device detection issues on bootup with host cable
connected. Fix this by improving PM runtime handling in sm_work.

Change-Id: I69609f07f09dfaa8eb3979175eacd6ff14b47547
Signed-off-by: default avatarChandanaKishori Chiluveru <cchilu@codeaurora.org>
parent ac263d37
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