summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDiana Z <dzigterman@chromium.org>2021-02-24 16:18:16 -0700
committerCommit Bot <commit-bot@chromium.org>2021-03-09 23:44:36 +0000
commit1f3663c84209271a62c38308adaced5ae34032d6 (patch)
tree8729752bc21e15b0b9954b56609f7d510f4ead88 /test
parent30ca30a3c11d98a293ec56221572b49866d29383 (diff)
downloadchrome-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')
-rw-r--r--test/usb_pe_drp_old.c5
-rw-r--r--test/usb_pe_drp_old_noextended.c5
-rw-r--r--test/usb_prl_old.c4
3 files changed, 14 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. */
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. */
diff --git a/test/usb_prl_old.c b/test/usb_prl_old.c
index 6d6f02c6cf..b3e39b3b30 100644
--- a/test/usb_prl_old.c
+++ b/test/usb_prl_old.c
@@ -103,6 +103,10 @@ void pd_set_suspend(int port, int suspend)
{
}
+void pd_set_error_recovery(int port)
+{
+}
+
static struct pd_prl {
int rev;
int pd_enable;