USB: OTG: msm: Resume hardware as part of ASYNC INT only
OTG drivr relies on runtime PM to suspend hardware and
release wakelocks. It also brings hardware out of suspend
and acquires wakelock during system resume. Later if device
power_count is not increased (say USB cable is not attached)
then device would suspend when kernel drops the power_count
in dpm_complete to match pm_runtime_get_noresume call in
dpm_prepare.
Since this handling has now been changed, it results
in preventing system to suspend subsequently.
Fix this by bringing hardware out of suspend only if runtime
PM is not enabled. As with RuntimePM, driver can wake up h/w
as part of handling ASYNC interrupt.
Signed-off-by: Manu Gautam <mgautam@codeaurora.org>
1 file changed