diff options
author | Rob Barnes <robbarnes@google.com> | 2021-03-24 12:25:26 -0600 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2021-04-29 05:24:00 +0000 |
commit | 51c4d9fbfd9611978627ce6111b1083379a4b829 (patch) | |
tree | 954887466c0844a45f6d097e0fa8a844602e40d8 /src/drivers/usb | |
parent | f3e82459a8ea0fa0ec92e458a92cd20effcfef3a (diff) |
chromeec: Fix google_chromeec_status_check timeout
Rewrite google_chromeec_status_check to use stopwatch instead of a
delay in a while loop. In practice the while loop ends up taking
much longer than one second to timeout. Using stopwatch library will
accurately timeout after one second.
BUG=b:183524609
TEST=Build and run on guybrush
BRANCH=None
Change-Id: I363ff7453bcf81581884f92797629a6f96d42580
Signed-off-by: Rob Barnes <robbarnes@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/51775
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Furquan Shaikh <furquan@google.com>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Diffstat (limited to 'src/drivers/usb')
0 files changed, 0 insertions, 0 deletions