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 /test | |
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 'test')
-rw-r--r-- | test/usb_typec_drp_acc_trysrc.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/usb_typec_drp_acc_trysrc.c b/test/usb_typec_drp_acc_trysrc.c index f33c7079cf..3d329606ba 100644 --- a/test/usb_typec_drp_acc_trysrc.c +++ b/test/usb_typec_drp_acc_trysrc.c @@ -87,6 +87,12 @@ __maybe_unused static int test_mux_con_dis_as_snk(void) mock_tcpc.should_print_call = false; mock_usb_mux.num_set_calls = 0; + /* + * we expect a PD-capable partner to be able to check below + * whether it is data capable. + */ + tc_pd_connection(0, 1); + /* Update CC lines send state machine event to process */ mock_tcpc.cc1 = TYPEC_CC_VOLT_RP_3_0; mock_tcpc.cc2 = TYPEC_CC_VOLT_OPEN; |