diff options
author | Abe Levkoy <alevkoy@chromium.org> | 2021-05-13 17:04:30 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-05-14 18:42:21 +0000 |
commit | f0927fd016694b7a7507bbb16b529cfa1154e3d1 (patch) | |
tree | a37fbe0fd6261f60e79202ff42c768ef9bc85b0a | |
parent | 05820f7b1ad137612cb53da6e311278ba22dbcd1 (diff) | |
download | chrome-ec-stabilize-13971.B-main.tar.gz |
TCPMv2: Initiate VCONN Swap when requestedstabilize-13971.B-main
Do not ignore a requested VCONN Swap if VDM setup is done. Use a DPM
request flag (which is always handled in the ready state) instead of the
VCONN Swap PE flag (which is only handled if mode entry hasn't
completed).
BUG=b:187861138
TEST=make buildall
BRANCH=firmware-volteer-13672.B-main
Signed-off-by: Abe Levkoy <alevkoy@chromium.org>
Change-Id: I32ebb7c50e9abc47351398f229a2b464605f634d
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2895425
Tested-by: Li1 Feng <li1.feng@intel.com>
Reviewed-by: Keith Short <keithshort@chromium.org>
Reviewed-by: Diana Z <dzigterman@chromium.org>
Commit-Queue: Diana Z <dzigterman@chromium.org>
-rw-r--r-- | common/usbc/usb_pe_drp_sm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/usbc/usb_pe_drp_sm.c b/common/usbc/usb_pe_drp_sm.c index 17fb9d95f0..eeef29e387 100644 --- a/common/usbc/usb_pe_drp_sm.c +++ b/common/usbc/usb_pe_drp_sm.c @@ -1765,7 +1765,7 @@ void pd_request_power_swap(int port) static bool port_try_vconn_swap(int port) { if (pe[port].vconn_swap_counter < N_VCONN_SWAP_COUNT) { - PE_SET_FLAG(port, PE_FLAGS_VCONN_SWAP_TO_ON); + pd_dpm_request(port, DPM_REQUEST_VCONN_SWAP); set_state_pe(port, get_last_state_pe(port)); return true; } |