summaryrefslogtreecommitdiff
path: root/common/usbc/usb_pe_ctvpd_sm.c
diff options
context:
space:
mode:
authorSam Hurst <shurst@google.com>2019-11-08 14:58:06 -0800
committerCommit Bot <commit-bot@chromium.org>2019-11-24 07:43:21 +0000
commitb42c094e59da719d37a22ec4571b0a085aea0e09 (patch)
treecabe5d9b2249b71c405ef60e070d139e80b4307a /common/usbc/usb_pe_ctvpd_sm.c
parent9c2269ef66bb3001b42b78cdd67200a9fd871eaa (diff)
downloadchrome-ec-b42c094e59da719d37a22ec4571b0a085aea0e09.tar.gz
TCPMv2: PD: Separately track each SOP and SOP' and SOP''
Tracked PD header spec. version for each port partner type. BUG=chromium:1023025 BRANCH=none TEST=make -j buildall Manual Testing: Connected PD2.0 source charger and made sure we talked PD2.0 Connected PD3.0 source charger and made sure we talked PD3.0 Connected apple 2019 PD2.0 dock with charger and made sure we downgraded from PD3.0 to PD2.0 Change-Id: I3b49d9630acf6c19101ac71334445890c78c4077 Signed-off-by: Sam Hurst <shurst@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1907430 Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'common/usbc/usb_pe_ctvpd_sm.c')
-rw-r--r--common/usbc/usb_pe_ctvpd_sm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/usbc/usb_pe_ctvpd_sm.c b/common/usbc/usb_pe_ctvpd_sm.c
index 5fe7a6b5a3..3e78ebcbb5 100644
--- a/common/usbc/usb_pe_ctvpd_sm.c
+++ b/common/usbc/usb_pe_ctvpd_sm.c
@@ -190,9 +190,9 @@ static void pe_request_run(const int port)
emsg[port].len = 20;
/* Set to highest revision supported by both ports. */
- prl_set_rev(port, (PD_HEADER_REV(header) > PD_REV30) ?
+ prl_set_rev(port, TCPC_TX_SOP_PRIME,
+ (PD_HEADER_REV(header) > PD_REV30) ?
PD_REV30 : PD_HEADER_REV(header));
-
/* Send the ACK */
prl_send_data_msg(port, TCPC_TX_SOP_PRIME,
PD_DATA_VENDOR_DEF);