Commit dc60f125 authored by Pavankumar Kondeti's avatar Pavankumar Kondeti Committed by Bryan Huntsman
Browse files

USB: msm_otg: Increment PM usage counter for suspend failure cases



The current code does not return error from runtime_suspend hook,
even if fail to enter into low power mode.  OTG driver will not
increment PM runtime usage counter outside LPM.  Runtime PM thinks,
our device is in LPM and ignores the subsequent PM usage decrements.
Hence increment the PM usage counter explicitly if suspend fails.

Signed-off-by: default avatarPavankumar Kondeti <pkondeti@codeaurora.org>
parent 06e3cdb2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment