diff options
author | Jett Rink <jettrink@chromium.org> | 2019-10-17 10:14:24 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-10-24 00:44:31 +0000 |
commit | cb2fa8b437cb14e652f0e6374d3caf8e568a04ac (patch) | |
tree | bcb51a9ea792f8d2d40305ec78dbbe6afaf9f4fa /test/usb_typec_drp_acc_trysrc.mocklist | |
parent | 664d4e781063463923376bb9b557dc765d37b7e3 (diff) | |
download | chrome-ec-cb2fa8b437cb14e652f0e6374d3caf8e568a04ac.tar.gz |
usb: call pd_execute_data_swap within tc_set_data
We need to let board specific code run any time we change the data role
on our USB-C connection.
When looking at all of the calls to tc_set_data_role, I realized that we
don't really reset any data role until we start a new contract with
SNK/SRC ready. We will do need to call into the code that disables the
MUX lines when we detach.
To do this, I created a super state for SNK/SRC unattached.
BRANCH=none
BUG=none
TEST=builds. No board has an OTG signal using the new stack yet
Change-Id: I017d20b2e1973b31ebf2b8925a7f8c5488a8ee24
Signed-off-by: Jett Rink <jettrink@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1864427
Diffstat (limited to 'test/usb_typec_drp_acc_trysrc.mocklist')
-rw-r--r-- | test/usb_typec_drp_acc_trysrc.mocklist | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/usb_typec_drp_acc_trysrc.mocklist b/test/usb_typec_drp_acc_trysrc.mocklist new file mode 100644 index 0000000000..71c2e2cee9 --- /dev/null +++ b/test/usb_typec_drp_acc_trysrc.mocklist @@ -0,0 +1,8 @@ +/* Copyright 2019 The Chromium OS Authors. All rights reserved. + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + + #define CONFIG_TEST_MOCK_LIST \ + MOCK(USB_MUX) \ + MOCK(TCPC) |