diff options
author | Denis Brockus <dbrockus@google.com> | 2021-01-20 13:23:43 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-01-21 21:44:34 +0000 |
commit | 6fc9c34b860ec6bb9d26048a52d1835a34884ce2 (patch) | |
tree | ba24b79cb983386dbfb40273f5d1244fdc071f90 /include/usb_tc_sm.h | |
parent | 0e364a685be9a96ca3be033b24a07246cfa08833 (diff) | |
download | chrome-ec-6fc9c34b860ec6bb9d26048a52d1835a34884ce2.tar.gz |
TCPMv2: TD.PD.SRC.E5 Compliance failure - service event loop as high priority
Increased the event loop while waiting for the
response in PE_SRC_Send_Capabilities in order
to respond with the HardReset in the correct
window of time.
BUG=b:173025780
BRANCH=zork
TEST=make run-usb_tcpmv2_compliance
Signed-off-by: Denis Brockus <dbrockus@google.com>
Change-Id: Ia108b3d4d4f18b76da6550f406011d1ee79c2757
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2639663
Tested-by: Denis Brockus <dbrockus@chromium.org>
Reviewed-by: Edward Hill <ecgh@chromium.org>
Reviewed-by: Diana Z <dzigterman@chromium.org>
Commit-Queue: Denis Brockus <dbrockus@chromium.org>
Auto-Submit: Denis Brockus <dbrockus@chromium.org>
Diffstat (limited to 'include/usb_tc_sm.h')
-rw-r--r-- | include/usb_tc_sm.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/usb_tc_sm.h b/include/usb_tc_sm.h index f325a56e90..d01cc900a0 100644 --- a/include/usb_tc_sm.h +++ b/include/usb_tc_sm.h @@ -332,6 +332,13 @@ void tc_start_event_loop(int port); void tc_pause_event_loop(int port); /** + * Increase the frequency of waking the event loop for high priority cases + * + * @param port USB-C port number + */ +void tc_high_priority_event(int port, bool high_pri); + +/** * Allow system to override the control of TrySrc * * @param en TRY_SRC_OVERRIDE_OFF - Force TrySrc OFF |