summaryrefslogtreecommitdiff
path: root/test/usb_prl.c
diff options
context:
space:
mode:
authorJett Rink <jettrink@chromium.org>2019-10-17 10:14:24 -0600
committerCommit Bot <commit-bot@chromium.org>2019-10-24 00:44:31 +0000
commitcb2fa8b437cb14e652f0e6374d3caf8e568a04ac (patch)
treebcb51a9ea792f8d2d40305ec78dbbe6afaf9f4fa /test/usb_prl.c
parent664d4e781063463923376bb9b557dc765d37b7e3 (diff)
downloadchrome-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_prl.c')
0 files changed, 0 insertions, 0 deletions