diff options
author | Vic Yang <victoryang@chromium.org> | 2014-08-06 17:52:30 -0700 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-08-11 09:05:23 +0000 |
commit | 5ab558117d1953490140b20dea98fac30bbfff06 (patch) | |
tree | 4010b5bd5fae95e4ea2015197a8e749fba2a76f3 /test/usb_pd_test_util.h | |
parent | 0d4529c8481a8f4e00ea351a63b0d11d0bb9efe2 (diff) | |
download | chrome-ec-5ab558117d1953490140b20dea98fac30bbfff06.tar.gz |
pd: use interrupt on Rx retry
After sending a message, we wait for up to 2.7 ms for reply. If we don't
get one, we retry for up to twice. Therefore, a undelivered message
could take up to >8ms. To prevent starving other tasks, let's yield to
other tasks on retries and rely on interrupt to wake us.
BUG=chrome-os-partner:28341
TEST=Plug in zinger on port 0 and C-to-A dongle on port 1. Check that
port 0 drops connection less frequently.
BRANCH=None
Change-Id: If85a70fd1140fef69d79243b198703ce601f8030
Signed-off-by: Vic Yang <victoryang@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/211281
Reviewed-by: Alec Berg <alecaberg@chromium.org>
Diffstat (limited to 'test/usb_pd_test_util.h')
0 files changed, 0 insertions, 0 deletions