summaryrefslogtreecommitdiff
path: root/board/hatch_fp
diff options
context:
space:
mode:
authorNamyoon Woo <namyoon@chromium.org>2019-04-22 13:28:40 -0700
committerchrome-bot <chrome-bot@chromium.org>2019-04-26 00:17:47 -0700
commit8c50dc29cb6f7cdb077fe9ba49425404ae98207b (patch)
treef275ae386bc06967ebfa3095b616f3926ceb51d1 /board/hatch_fp
parent0a60e8dbd01b39ca1c4fde2523f0961c5a07fc35 (diff)
downloadchrome-ec-8c50dc29cb6f7cdb077fe9ba49425404ae98207b.tar.gz
chip/g: prevent USB read queue overflow
CR50 should check whether USB RX queue has enough space for host data. If not, it schedules to retry it in another deferred call. BUG=b:130908211 BRANCH=cr50 TEST=manually ran "echo 'help' > /dev/ttyUSB0" more than 30 times. Without this CL, it used to break cr50 console input, and it worked as if it is 'read-only'. After applying this CL, cr50 console input works normal even after excessive input stream. Change-Id: Ieace84b51c31800b52d2c4a9334e6ffe7888e592 Signed-off-by: Namyoon Woo <namyoon@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1576326 Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com> Reviewed-by: Mary Ruthven <mruthven@chromium.org>
Diffstat (limited to 'board/hatch_fp')
0 files changed, 0 insertions, 0 deletions