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

Skip to content
Commit 20f5af40 authored by Hemant Kumar's avatar Hemant Kumar
Browse files

usb: dwc3-msm: Handle controller suspend properly upon device disconnect



Controller driver relies on OTG state OTG_STATE_B_PERIPHERAL to check if
suspend needs to be aborted for device suspend and device disconnect.
In case of device disconnect, there is a possibility that OTG state has
changed to OTG_STATE_B_IDLE when controller suspend is initiated. This
causes suspend to continue and disable USB clocks while USB BAM register
is being accessed to complete IPA handshake. Hence perform this check
always in case of device mode controller suspend instead of relying on
OTG state.

CRs-Fixed: 736139
Change-Id: Ida68335875fbf4024e293c916465dc12e4c36499
Signed-off-by: default avatarHemant Kumar <hemantk@codeaurora.org>
parent c6297e1e
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