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:
Ajay Agarwal <ajaya@codeaurora.org>
Loading
Please register or sign in to comment