diff options
author | li feng <li1.feng@intel.com> | 2021-09-09 20:37:57 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-09-14 16:24:02 +0000 |
commit | 9789434a988acc966435f8b6f4cede1903a4135c (patch) | |
tree | e379ff15d45354c96c73db27607fa2f9b0da70fd /common | |
parent | 9c6aeea883776d4f759fe476a0d379223d63952b (diff) | |
download | chrome-ec-9789434a988acc966435f8b6f4cede1903a4135c.tar.gz |
TCPMv2: cable checking for USB4
enter_usb_cable_is_capable() doesn't handle non-Emark cable case.
If cable is neither passive cable nor active cable, return false.
BUG=none
BRANCH=none
TEST=make buildall
Signed-off-by: li feng <li1.feng@intel.com>
Change-Id: I82c9df842d05fb78535c8d6d310bf6d1913c25b8
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3153356
Reviewed-by: Vijay Hiremath <vijay.p.hiremath@intel.com>
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'common')
-rw-r--r-- | common/usbc/usb_mode.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/common/usbc/usb_mode.c b/common/usbc/usb_mode.c index 1620ed4e1f..1ed207353c 100644 --- a/common/usbc/usb_mode.c +++ b/common/usbc/usb_mode.c @@ -212,7 +212,11 @@ bool enter_usb_cable_is_capable(int port) TBT_GEN3_GEN4_ROUNDED_NON_ROUNDED) return false; } + } else { + /* Not Emark cable */ + return false; } + return true; } |