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:
Hemant Kumar <hemantk@codeaurora.org>
Loading
Please register or sign in to comment