From 2afbf01e37f4937905b28586a7bf55b1822c6f68 Mon Sep 17 00:00:00 2001 From: Diana Z Date: Thu, 14 May 2020 09:38:50 -0600 Subject: 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 Change-Id: I60427204380067fc5ee36432eab0146a9ab0687b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2202077 Tested-by: Denis Brockus Reviewed-by: Denis Brockus Commit-Queue: Denis Brockus --- test/fake_usbc.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'test/fake_usbc.c') 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) {} -- cgit v1.2.1