diff options
author | Vincent Palatin <vpalatin@chromium.org> | 2021-01-19 12:58:41 +0000 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-01-25 19:31:38 +0000 |
commit | fbca51787502977287808d0a8d23fa3d480d8cd5 (patch) | |
tree | df6eab0a77d9d0fe410c8e0504a88c27a2ebd7e9 /common/mock/usb_tc_sm_mock.c | |
parent | c6baaa7c8201decf21362d55973c7176d300df95 (diff) | |
download | chrome-ec-fbca51787502977287808d0a8d23fa3d480d8cd5.tar.gz |
pd: fix superspeed mux steering on UFP
When the device has a USB superspeed UFP (which is uncommon, this is
either servo v4.1 or a laptop port in SS device-mode), if we connect as
a sink *before* trying PD communication, we should connect the SS mux
without waiting for the partner PD comm capability as we might never be
able to communicate with it over PD.
Signed-off-by: Vincent Palatin <vpalatin@chromium.org>
BUG=b:150614702
BRANCH=servo
TEST=use the sink mode enabled by 'cc pdsnk', connect to a USB-C
Chromebook, try both video output on USB-C->mini-DP and USB 3.0.
Change-Id: Iea0409fce2cb7aca089814ae406a7c05848dd8e4
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2637647
Tested-by: Vincent Palatin <vpalatin@chromium.org>
Reviewed-by: Diana Z <dzigterman@chromium.org>
Commit-Queue: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'common/mock/usb_tc_sm_mock.c')
-rw-r--r-- | common/mock/usb_tc_sm_mock.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/common/mock/usb_tc_sm_mock.c b/common/mock/usb_tc_sm_mock.c index cb866a9268..6923e97f9d 100644 --- a/common/mock/usb_tc_sm_mock.c +++ b/common/mock/usb_tc_sm_mock.c @@ -172,6 +172,11 @@ bool pd_get_partner_dual_role_power(int port) return true; } +bool pd_capable(int port) +{ + return true; +} + void pd_set_suspend(int port, int suspend) { } |