diff options
author | Keith Short <keithshort@chromium.org> | 2020-08-27 14:51:41 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-09-02 03:20:23 +0000 |
commit | c069177ccc29b4373d5587e1dcea966aeee0a856 (patch) | |
tree | 84f6a1b6e046b0c2aab859a992a7366c5fb29c8c /driver/tcpm/mt6370.c | |
parent | 6b7a3e349d4d55c3a5a40bfa6094e415a5a4d8c3 (diff) | |
download | chrome-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/mt6370.c')
-rw-r--r-- | driver/tcpm/mt6370.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/driver/tcpm/mt6370.c b/driver/tcpm/mt6370.c index af11bcb11d..07ebeac7f9 100644 --- a/driver/tcpm/mt6370.c +++ b/driver/tcpm/mt6370.c @@ -195,6 +195,9 @@ const struct tcpm_drv mt6370_tcpm_drv = { .select_rp_value = &tcpci_tcpm_select_rp_value, .set_cc = &mt6370_set_cc, .set_polarity = &mt6370_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, |