diff options
author | Edward Hill <ecgh@chromium.org> | 2020-07-27 19:01:55 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-08-01 04:00:43 +0000 |
commit | 44504b4e0a648e81bd353b6a3d19cdfc3bc107da (patch) | |
tree | 34e8f59bd95d09184ab6d59898599b2451964b43 /test/fake_prl.c | |
parent | 0f93e28bc7d3bfe61ba792d31d6a9ed7be43728e (diff) | |
download | chrome-ec-44504b4e0a648e81bd353b6a3d19cdfc3bc107da.tar.gz |
TCPMv2: Soft reset on failure to send source caps
pe_report_error() defers to PE_SRC_SEND_CAPABILITIES for custom
error handling (via PE_FLAGS_PROTOCOL_ERROR).
pe_src_send_capabilities_run() was correctly going to PE_SRC_DISCOVERY
when we are not connected (PD 3.0 8.3.3.2.3), but it was failing to
send soft reset when we are already connected (PD 3.0 8.3.3.4.1.1).
BUG=b:161835483
BRANCH=none
TEST=make run-usb_pe_drp
PD 3.0 compliance test TD.PD.SRC3.E26
(Soft_Reset sent regardless of Rp value)
Signed-off-by: Edward Hill <ecgh@chromium.org>
Change-Id: Id71e38a69006e95b7ff4f7145e86bd5ac64c7577
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2321869
Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'test/fake_prl.c')
-rw-r--r-- | test/fake_prl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/fake_prl.c b/test/fake_prl.c index 162e63298f..dcfdce9606 100644 --- a/test/fake_prl.c +++ b/test/fake_prl.c @@ -27,7 +27,7 @@ void prl_hard_reset_complete(int port) int prl_is_running(int port) { - return 0; + return 1; } void prl_reset(int port) |