From 19d5ee8a48a927fd87db35a6f1e2088b7259a64c Mon Sep 17 00:00:00 2001 From: Diana Z Date: Mon, 16 Nov 2020 14:06:35 -0700 Subject: 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 Change-Id: Ife52e7d7d098825ab2163c70a4c59510da958876 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2542864 Reviewed-by: Keith Short Signed-off-by: Keith Short Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2551943 --- common/usbc/usb_pe_drp_sm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'common/usbc') 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 { -- cgit v1.2.1