summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuben Rodriguez Buchillon <coconutruben@chromium.org>2020-12-08 13:27:12 -0800
committerCommit Bot <commit-bot@chromium.org>2020-12-11 19:29:14 +0000
commitb0985bbd57bb9f7cbfe16b96657af3a926ac8d89 (patch)
treeea6fefc7a6f5fd93a26528eceec56b261e54b772
parenta98f7d22dc511f3a3a381fe4b7a1fd8ba0ab3e11 (diff)
downloadchrome-ec-stabilize-13597.71.B-master.tar.gz
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.py3
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)