diff options
author | Tomasz Michalec <tm@semihalf.com> | 2021-08-24 11:29:28 +0200 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-09-02 21:00:57 +0000 |
commit | 4794dacf4ee452fc6effbab92c0612eee5febe30 (patch) | |
tree | f90e598226f7463cd01adb68594fa021a47bdb1a /common | |
parent | 16245fe2c3f2b8b98627a06f0577c84c22ef1eb4 (diff) | |
download | chrome-ec-4794dacf4ee452fc6effbab92c0612eee5febe30.tar.gz |
TBT: Correct is_cable_speed_gen2_capable function
The is_cable_speed_gen2_capable() function should use information about PD
revision instead of checking the VDM version.
BUG=None
BRANCH=None
TEST=None
Signed-off-by: Tomasz Michalec <tm@semihalf.com>
Change-Id: I95a8bf977020b3756e5c82fde523c8ae29c455aa
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3113970
Commit-Queue: Jeremy Bettis <jbettis@chromium.org>
Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'common')
-rw-r--r-- | common/usb_pd_alt_mode_dfp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/usb_pd_alt_mode_dfp.c b/common/usb_pd_alt_mode_dfp.c index 366647a7b9..71e3c051a5 100644 --- a/common/usb_pd_alt_mode_dfp.c +++ b/common/usb_pd_alt_mode_dfp.c @@ -811,7 +811,7 @@ bool is_cable_speed_gen2_capable(int port) struct pd_discovery *disc = pd_get_am_discovery(port, TCPCI_MSG_SOP_PRIME); - switch (pd_get_vdo_ver(port, TCPCI_MSG_SOP_PRIME)) { + switch (pd_get_rev(port, TCPCI_MSG_SOP_PRIME)) { case PD_REV20: return disc->identity.product_t1.p_rev20.ss == USB_R20_SS_U31_GEN1_GEN2; |