usb: pd: Call reset_vdm_state() before stopping USB host mode
Current handling of USB type C cable disconnect with DFP mode:
1. USB disconnect is notified by charger driver to USB policy engine
2. USB policy engine stops host or device mode based on dr_mode
3. USB policy engine calls reset_vdm_state() to tear down with SVID
based client to run their low power mode sequence
In above step 2, USB driver resets and initializes both USB PHYs if
maximum_speed is super-speed. USB QMP PHY driver performs global
reset of USB QMP DP PHY which results into DP PHY reset as well
and colliding with DP driver low power mode sequence i.e. step 3.
Fix this issue by calling reset_vdm_state() before stopping host mode
to allow DP driver to complete its low power mode sequence before
resetting USB QMP DP PHY.
Change-Id: Ied79b560fc4c39328024e267f25519a5910a5423
Signed-off-by:
Mayank Rana <mrana@codeaurora.org>
Loading
Please register or sign in to comment