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

Skip to content
Commit 86cb2029 authored by Mayank Rana's avatar Mayank Rana
Browse files

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: default avatarMayank Rana <mrana@codeaurora.org>
parent 6a9b4102
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