diff options
author | Diana Z <dzigterman@chromium.org> | 2020-05-14 09:38:50 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-05-16 00:15:21 +0000 |
commit | 2afbf01e37f4937905b28586a7bf55b1822c6f68 (patch) | |
tree | 7f1291cda176eea192a92e3a4edc0aa963eefcc2 /test | |
parent | a8638087604a975980cb0379558f4f80b8d33eea (diff) | |
download | chrome-ec-2afbf01e37f4937905b28586a7bf55b1822c6f68.tar.gz |
TCPMv2: Move sink hard reset recovery into TC
The PD spec requires that PE_SNK_Transition_to_default exits when the
sink has reached the default level. Change how the TC handles sink hard
resets to wait on notifying the PE hard reset is complete until Vbus has
returned.
BRANCH=None
BUG=b:155923935,b:153593929
TEST=on kindred with TCPMv2, ensure:
- port goes unattached after removing suzy-q
- hard reset as source succeeds, gets back to SRC_Ready
- hard reset as sink succeeds, no extra hard resets sent while source is
recovering
Signed-off-by: Diana Z <dzigterman@chromium.org>
Change-Id: I60427204380067fc5ee36432eab0146a9ab0687b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2202077
Tested-by: Denis Brockus <dbrockus@chromium.org>
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Commit-Queue: Denis Brockus <dbrockus@chromium.org>
Diffstat (limited to 'test')
-rw-r--r-- | test/fake_usbc.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/test/fake_usbc.c b/test/fake_usbc.c index 731e15c3de..13a1945a0a 100644 --- a/test/fake_usbc.c +++ b/test/fake_usbc.c @@ -87,9 +87,6 @@ int tc_is_vconn_src(int port) void tc_hard_reset_request(int port) {} -void tc_hard_reset_allow_unattach(int port) -{} - void tc_hard_reset_complete(int port) {} |