summaryrefslogtreecommitdiff
path: root/common/usbc/usb_tc_drp_acc_trysrc_sm.c
diff options
context:
space:
mode:
authorAyushee <ayushee.shah@intel.com>2020-09-01 14:41:19 -0700
committerCommit Bot <commit-bot@chromium.org>2020-09-11 01:46:29 +0000
commit181f23c9863e3350cb52c6e04490fbebd60e37eb (patch)
tree8bc26152601874eae8132176487b5f2f01f81820 /common/usbc/usb_tc_drp_acc_trysrc_sm.c
parent5ab4bd06261abf1204638c8ef877a9adb041d6e8 (diff)
downloadchrome-ec-181f23c9863e3350cb52c6e04490fbebd60e37eb.tar.gz
TCPMv2: Set mux state on updating partner's USB comm capability
On updating the port partner's USB communication capability, the mux should also be configured into USB/disconnect mode accordingly. Hence, this CL sets the mux setting according to the partner's USB capability. BUG=b:157163664 BRANCH=None TEST=Able to update the mux state on updating the port part USB comm capability. Signed-off-by: Ayushee <ayushee.shah@intel.com> Change-Id: Ic2d27e2a0af6dad54a875a589b85f8a5d583b5b4 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2388972 Reviewed-by: Vijay P Hiremath <vijay.p.hiremath@intel.com> Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'common/usbc/usb_tc_drp_acc_trysrc_sm.c')
-rw-r--r--common/usbc/usb_tc_drp_acc_trysrc_sm.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/common/usbc/usb_tc_drp_acc_trysrc_sm.c b/common/usbc/usb_tc_drp_acc_trysrc_sm.c
index 9f99626549..b6ba7a09b9 100644
--- a/common/usbc/usb_tc_drp_acc_trysrc_sm.c
+++ b/common/usbc/usb_tc_drp_acc_trysrc_sm.c
@@ -765,6 +765,12 @@ void tc_partner_usb_comm(int port, int en)
TC_SET_FLAG(port, TC_FLAGS_PARTNER_USB_COMM);
else
TC_CLR_FLAG(port, TC_FLAGS_PARTNER_USB_COMM);
+
+ /*
+ * Update the mux setting according to the port partner's
+ * USB communication capability.
+ */
+ set_usb_mux_with_current_data_role(port);
}
void tc_partner_dr_data(int port, int en)