diff options
author | Scott <scollyer@chromium.org> | 2017-03-09 14:26:48 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-03-26 02:15:54 -0700 |
commit | a240040cbf59c743d762b2c6a2eae1421840a66e (patch) | |
tree | 57db3bd03a672ffba2b8e7bd4220cb6dab1368d0 /common/usb_pd_protocol.c | |
parent | 850e9e4ac0f84217b7fbc182b23821047e203307 (diff) | |
download | chrome-ec-a240040cbf59c743d762b2c6a2eae1421840a66e.tar.gz |
servo_v4: Set desired data role for DUT port to UFP
The default for servo_v4 DUT port is to be SRC to charge the DUT, but
a UFP data role so that the DUT's usb mux gets connected.
BUG=b:35586526
BRANCH=servo
TEST=Connect to Electro and verify that servo_v4 data role is that of
UFP and that electro is getting an IP address from the enet port on
servo_v4.
Change-Id: I8f2e4242777bf879598852004096f683d68c091c
Signed-off-by: Scott <scollyer@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/452725
Commit-Ready: Scott Collyer <scollyer@chromium.org>
Tested-by: Scott Collyer <scollyer@chromium.org>
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'common/usb_pd_protocol.c')
-rw-r--r-- | common/usb_pd_protocol.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/usb_pd_protocol.c b/common/usb_pd_protocol.c index 1447dccc71..2986e84843 100644 --- a/common/usb_pd_protocol.c +++ b/common/usb_pd_protocol.c @@ -1962,6 +1962,8 @@ void pd_task(void) /* Enable TCPC RX */ if (pd_comm_is_enabled(port)) tcpm_set_rx_enable(port, 1); + pd[port].flags |= + PD_FLAGS_CHECK_DR_ROLE; hard_reset_count = 0; timeout = 10*MSEC; set_state(port, PD_STATE_SRC_STARTUP); |