diff options
author | Diana Z <dzigterman@chromium.org> | 2021-02-24 16:18:16 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-03-09 23:44:36 +0000 |
commit | 1f3663c84209271a62c38308adaced5ae34032d6 (patch) | |
tree | 8729752bc21e15b0b9954b56609f7d510f4ead88 /test/usb_pe_drp_old.c | |
parent | 30ca30a3c11d98a293ec56221572b49866d29383 (diff) | |
download | chrome-ec-1f3663c84209271a62c38308adaced5ae34032d6.tar.gz |
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 <dzigterman@chromium.org>
Change-Id: I487e0da3ef65c201ff406500f0c95244b460afcb
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2718836
Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
Diffstat (limited to 'test/usb_pe_drp_old.c')
-rw-r--r-- | test/usb_pe_drp_old.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/usb_pe_drp_old.c b/test/usb_pe_drp_old.c index 1c5717a341..e545667432 100644 --- a/test/usb_pe_drp_old.c +++ b/test/usb_pe_drp_old.c @@ -74,6 +74,11 @@ void pd_set_suspend(int port, int suspend) } +void pd_set_error_recovery(int port) +{ + +} + test_static void setup_source(void) { /* Start PE. */ |