diff options
author | Ayushee Shah <ayushee.shah@intel.com> | 2021-01-21 10:48:29 -0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-01-25 18:39:09 +0000 |
commit | d289734a5c94de71b512df8b4736d406df9b6524 (patch) | |
tree | c778a0351f0917bdeba38d27b205798027f7ef5e /common/usb_pd_console_cmd.c | |
parent | 24c5daa48c94cdf6160ee111d346690817238413 (diff) | |
download | chrome-ec-d289734a5c94de71b512df8b4736d406df9b6524.tar.gz |
TBT: Correct pdcable command
This CL changes the revision field in the pdcable console command
to check the PD revision instead of checking the VDM version.
BUG=None
BRANCH=None
TEST=Able to get the 'Cable Rev' field as 3.0 for PD 3.0 cables
Signed-off-by: Ayushee Shah <ayushee.shah@intel.com>
Change-Id: I7e10b2e352bc78c23c8578361b577d04a9491e7a
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2643576
Reviewed-by: Tanu Malhotra <tanu.malhotra@intel.com>
Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'common/usb_pd_console_cmd.c')
-rw-r--r-- | common/usb_pd_console_cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/usb_pd_console_cmd.c b/common/usb_pd_console_cmd.c index c1b263907a..1448424213 100644 --- a/common/usb_pd_console_cmd.c +++ b/common/usb_pd_console_cmd.c @@ -133,7 +133,7 @@ static int command_cable(int argc, char **argv) } ccprintf("%s\n", cable_type[ptype]); - cable_rev = pd_get_vdo_ver(port, TCPC_TX_SOP_PRIME); + cable_rev = pd_get_rev(port, TCPC_TX_SOP_PRIME); disc = pd_get_am_discovery(port, TCPC_TX_SOP_PRIME); cable_mode_resp.raw_value = pd_get_tbt_mode_vdo(port, TCPC_TX_SOP_PRIME); |