summaryrefslogtreecommitdiff
path: root/driver/tcpm/anx7688.c
diff options
context:
space:
mode:
authorKeith Short <keithshort@chromium.org>2020-08-27 14:51:41 -0600
committerCommit Bot <commit-bot@chromium.org>2020-09-02 03:20:23 +0000
commitc069177ccc29b4373d5587e1dcea966aeee0a856 (patch)
tree84f6a1b6e046b0c2aab859a992a7366c5fb29c8c /driver/tcpm/anx7688.c
parent6b7a3e349d4d55c3a5a40bfa6094e415a5a4d8c3 (diff)
downloadchrome-ec-c069177ccc29b4373d5587e1dcea966aeee0a856.tar.gz
tcpmv2: disable receive of SOP' during VCONN swap
The USB PD specification indicates that the initial VCONN source shall cease source VCONN within tVCONNSourceOff (25 ms) after receiving PS_RDY. Not all partners wait after sending PS_RDY before trying to communicate with the cable. BUG=b:163478172, b:163143427 BRANCH=none TEST=make buildall TEST=Connect 2 Volteers together and force VCONN swaps confirming the sequence completes normally. Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: I14720f033c5f6e9caed9c4fe3bfa11e5c046116e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2381030 Reviewed-by: Denis Brockus <dbrockus@chromium.org> Commit-Queue: Denis Brockus <dbrockus@chromium.org>
Diffstat (limited to 'driver/tcpm/anx7688.c')
-rw-r--r--driver/tcpm/anx7688.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/driver/tcpm/anx7688.c b/driver/tcpm/anx7688.c
index af585db562..1c6785f406 100644
--- a/driver/tcpm/anx7688.c
+++ b/driver/tcpm/anx7688.c
@@ -200,6 +200,9 @@ const struct tcpm_drv anx7688_tcpm_drv = {
.select_rp_value = &tcpci_tcpm_select_rp_value,
.set_cc = &tcpci_tcpm_set_cc,
.set_polarity = &tcpci_tcpm_set_polarity,
+#ifdef CONFIG_USB_PD_DECODE_SOP
+ .sop_prime_disable = &tcpci_tcpm_sop_prime_disable,
+#endif
.set_vconn = &tcpci_tcpm_set_vconn,
.set_msg_header = &tcpci_tcpm_set_msg_header,
.set_rx_enable = &tcpci_tcpm_set_rx_enable,