summaryrefslogtreecommitdiff
path: root/include/usb_pe_sm.h
diff options
context:
space:
mode:
authorScott Collyer <scollyer@google.com>2021-03-03 18:29:15 -0800
committerCommit Bot <commit-bot@chromium.org>2021-03-19 02:42:40 +0000
commit1720f734983ab6452884573e3a7c8e184d28cef7 (patch)
treecb70a8370f951218755645d34ab86a2a03494fc5 /include/usb_pe_sm.h
parentcb20783554410be144f1b552f6677fbc50b53a9a (diff)
downloadchrome-ec-1720f734983ab6452884573e3a7c8e184d28cef7.tar.gz
TCPMv2: PRL: Don't report ERR_RCH_CHUNKED to PE for timeout
This CL adds a new RCH error type used for the case when there was a sender response timeout waiting for the next chunk of a chunked message to be received. This particular error should not result in the PE triggering a soft reset. This new error type allows the PE function to do nothing for this error case. All other RCH error states remain the same. This change is required to pass the TD.PD.SRC3.E32 compliance test where the tester purposely stops sending after the 4th chunk and expects to be able to resend that message without an protocol error being reported. BUG=b:181333342,b:179443762 BRANCH=None TEST=Verified that quiche can now pass TD.PD.SRC3.E32 Signed-off-by: Scott Collyer <scollyer@google.com> Change-Id: I0142ca8d23cd23ef7b347d5c07155cdb17f44b88 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2734158 Reviewed-by: Denis Brockus <dbrockus@chromium.org> Tested-by: Denis Brockus <dbrockus@chromium.org> Tested-by: Scott Collyer <scollyer@chromium.org> Commit-Queue: Scott Collyer <scollyer@chromium.org>
Diffstat (limited to 'include/usb_pe_sm.h')
-rw-r--r--include/usb_pe_sm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/usb_pe_sm.h b/include/usb_pe_sm.h
index 7be15f94bf..b3ba56d95d 100644
--- a/include/usb_pe_sm.h
+++ b/include/usb_pe_sm.h
@@ -15,6 +15,7 @@
enum pe_error {
ERR_RCH_CHUNKED,
ERR_RCH_MSG_REC,
+ ERR_RCH_CHUNK_WAIT_TIMEOUT,
ERR_TCH_CHUNKED,
ERR_TCH_XMIT,
};