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:
ChandanaKishori Chiluveru <cchilu@codeaurora.org>
Loading
Please register or sign in to comment