usb: dwc3-msm: Request xhci resume if SS device connect fails suspend
In SuperSpeed peripheral disconnect/connect scenario to a host
port, there might be a race between dwc3_msm_suspend and PORTSC
register update with Port_Enable bit and Speed field. This can
lead to dwc3_msm_prepare_suspend failure, thereby aborting the
LPM sequence, and the connected peripheral also not enumerating
because of xHC is in suspended state.
Fix this by requesting a xHC resume if dwc3_msm_prepare_suspend
fails and controller is in host mode.
Change-Id: I49e6c19fa92a9ef31dccff584f43bd8942becb87
Signed-off-by:
Ajay Agarwal <ajaya@codeaurora.org>
Loading
Please register or sign in to comment