summaryrefslogtreecommitdiff
path: root/core/cortex-m
diff options
context:
space:
mode:
authorRaul E Rangel <rrangel@chromium.org>2020-08-06 10:06:03 -0600
committerCommit Bot <commit-bot@chromium.org>2020-08-06 21:36:06 +0000
commitda7d2c02f003d4ec739987624a13a3e7ac639613 (patch)
tree50866fd49273d9f9b6825262eec31ee211a97580 /core/cortex-m
parent69bab88511023f0742aa2794698b3cab7f816eb6 (diff)
downloadchrome-ec-da7d2c02f003d4ec739987624a13a3e7ac639613.tar.gz
chip/npcx/lpc: Read HIKMST before HIKMDI
Reading HIKMDI causes the IBF flag to deassert and allows the host to write a new byte into the input buffer. So if we don't capture the status before reading HIKMDI we will race with the host and get an invalid value for HIKMST.A20. BUG=b:162539945, b:157617092, b:159282882 BRANCH=none TEST=Boot ezkinil and make sure keyboard still functions. Signed-off-by: Raul E Rangel <rrangel@chromium.org> Change-Id: Ia8dcd18e3de31b4fa8c1742c7604d5c39e80dc51 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2341090 Commit-Queue: Edward Hill <ecgh@chromium.org> Reviewed-by: Edward Hill <ecgh@chromium.org>
Diffstat (limited to 'core/cortex-m')
0 files changed, 0 insertions, 0 deletions