From 1f3663c84209271a62c38308adaced5ae34032d6 Mon Sep 17 00:00:00 2001 From: Diana Z Date: Wed, 24 Feb 2021 16:18:16 -0700 Subject: TCPMv2: Add PD interface to asynchronously request TC Error Recovery If a condition is reached outside the PD task which requires USB Type-C Error Recovery, it can now use pd_set_error_recovery() to request that the PD task execute this. Note that this will return before the error recovery has completed, which is in contrast to the suspend port behavior. BRANCH=None BUG=b:180453483 TEST=make -j buildall Signed-off-by: Diana Z Change-Id: I487e0da3ef65c201ff406500f0c95244b460afcb Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2718836 Reviewed-by: Abe Levkoy --- test/usb_pe_drp_old_noextended.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/usb_pe_drp_old_noextended.c') diff --git a/test/usb_pe_drp_old_noextended.c b/test/usb_pe_drp_old_noextended.c index b57f0c09bd..cefd77b7d2 100644 --- a/test/usb_pe_drp_old_noextended.c +++ b/test/usb_pe_drp_old_noextended.c @@ -65,6 +65,11 @@ void pd_set_suspend(int port, int suspend) } +void pd_set_error_recovery(int port) +{ + +} + test_static void setup_source(void) { /* Start PE. */ -- cgit v1.2.1