diff options
author | Diana Z <dzigterman@chromium.org> | 2020-11-16 14:06:35 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-11-20 04:28:16 +0000 |
commit | 19d5ee8a48a927fd87db35a6f1e2088b7259a64c (patch) | |
tree | 6a8d7c44a6a0be7f7d9500e1605c848b0b4e84c7 /common/usbc | |
parent | aa607e87ba77e73a371647a38dd233339426f625 (diff) | |
download | chrome-ec-19d5ee8a48a927fd87db35a6f1e2088b7259a64c.tar.gz |
TCPC: Change SOP' disable interface
Add the ability to enable or disable SOP' traffic through a new
parameter. Name the function for "enable" to match other EC
conventions.
BRANCH=None
BUG=b:168560801
TEST=make -j buildall
Signed-off-by: Diana Z <dzigterman@chromium.org>
Change-Id: Ife52e7d7d098825ab2163c70a4c59510da958876
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2542864
Reviewed-by: Keith Short <keithshort@chromium.org>
Signed-off-by: Keith Short <keithshort@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2551943
Diffstat (limited to 'common/usbc')
-rw-r--r-- | common/usbc/usb_pe_drp_sm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/usbc/usb_pe_drp_sm.c b/common/usbc/usb_pe_drp_sm.c index bffba90088..81c9a8d79c 100644 --- a/common/usbc/usb_pe_drp_sm.c +++ b/common/usbc/usb_pe_drp_sm.c @@ -5684,7 +5684,7 @@ static void pe_vcs_evaluate_swap_entry(int port) * We continue to source VCONN while we wait as required by the * spec. */ - tcpm_sop_prime_disable(port); + tcpm_sop_prime_enable(port, false); } } @@ -5762,7 +5762,7 @@ static void pe_vcs_send_swap_run(int port) * Prevent receiving any SOP' and SOP'' * messages while a swap is in progress. */ - tcpm_sop_prime_disable(port); + tcpm_sop_prime_enable(port, false); set_state_pe(port, PE_VCS_WAIT_FOR_VCONN_SWAP); } else { |