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

Commit 7fe34d13 authored by Ajay Agarwal's avatar Ajay Agarwal
Browse files

phy: msm: usb: Fix USB suspend issue on cable disconnect



Currently on cable disconnect, we put the runtime PM counter
before marking the otg_state to B_IDLE. This leads to abort of
msm_otg_suspend since otg_state is still B_PERIPHERAL, and USB
does not go into low power mode.
Fix this by first marking otg_state to B_IDLE and then putting
the runtime PM count.

Change-Id: I1501b02ff13a549d8441279d14a7e860478f8a39
Signed-off-by: default avatarAjay Agarwal <ajaya@codeaurora.org>
parent 46211fdd
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