diff options
author | Ruben Rodriguez Buchillon <coconutruben@chromium.org> | 2020-12-08 13:27:12 -0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-12-11 19:29:14 +0000 |
commit | b0985bbd57bb9f7cbfe16b96657af3a926ac8d89 (patch) | |
tree | ea6fefc7a6f5fd93a26528eceec56b261e54b772 | |
parent | a98f7d22dc511f3a3a381fe4b7a1fd8ba0ab3e11 (diff) | |
download | chrome-ec-stabilize-13597.71.B-master.tar.gz |
stm32uart: add delay after readingstabilize-quickfix-13597.30.B-masterstabilize-13597.97.B-masterstabilize-13597.95.B-masterstabilize-13597.94.B-masterstabilize-13597.90.B-masterstabilize-13597.85.B-masterstabilize-13597.84.B-masterstabilize-13597.71.B-masterstabilize-13597.70.B-masterstabilize-13597.69.B-masterstabilize-13597.68.B-masterstabilize-13597.67.B-masterstabilize-13597.66.B-masterstabilize-13597.105.B-masterstabilize-13597.103.B-masterrelease-R88-13597.B-master
This implementation of the uart reading code lacks the fix inside
hdctools that adds a delay here. Amend the code.
BUG=chromium:1152838
BRANCH=None
TEST=sudo servo_updater --board servo_micro
TEST=sudo servo_updater --board sweetberry
TEST=sudo servo_updater --board servo_micro --force
Change-Id: I28f62f4553c726f1e63c7404508a5e59ce098990
Signed-off-by: Ruben Rodriguez Buchillon <coconutruben@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2580853
Reviewed-by: Garry Wang <xianuowang@chromium.org>
Reviewed-by: Otabek Kasimov <otabek@google.com>
(cherry picked from commit 315bc0f14ddab736e06d26a9c2f3cb2828910658)
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2585856
-rw-r--r-- | extra/tigertool/ecusb/stm32uart.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/extra/tigertool/ecusb/stm32uart.py b/extra/tigertool/ecusb/stm32uart.py index cfbbf485a4..fa0ed96820 100644 --- a/extra/tigertool/ecusb/stm32uart.py +++ b/extra/tigertool/ecusb/stm32uart.py @@ -113,6 +113,9 @@ class Suart(object): if not events: try: r = os.read(self._ptym, 64) + # TODO(crosbug.com/936182): Remove when the servo v4/micro console + # issues are fixed. + time.sleep(0.001) if r: self._susb._write_ep.write(r, self._susb.TIMEOUT_MS) |