summaryrefslogtreecommitdiff
path: root/chip/stm32/config-stm32f100.h
diff options
context:
space:
mode:
authorCharlie Mooney <charliemooney@chromium.org>2012-07-24 17:29:27 -0700
committerGerrit <chrome-bot@google.com>2012-07-26 16:50:10 -0700
commit82cd5b0daad82b34c27a18a9d0a38f74977fbf59 (patch)
tree3c9c19e9dc6c8e870e2ed27a90595de8e34f15f8 /chip/stm32/config-stm32f100.h
parent247fdaf13d7d317465d6d04b015a309721e599a9 (diff)
downloadchrome-ec-82cd5b0daad82b34c27a18a9d0a38f74977fbf59.tar.gz
Stop keyboard scans from triggering ARM EC reset
The ARM EC was being rebooted when both the power and one of several other keys were pressed. (LCtrl, Tab, Reload, t, [, ], y, Dim Screen and Mute) It should only do this when the key combo PWR + Reload is pressed. To fix it, keyboard scanning is disabled whenever the power button is pressed. It locks a mutex indicating that scanning should be disabled, and the main keyboard scanning task blocks on the step where it sets up the keyboard and waits for the mutex to unlock. BUG=chrome-os-partner:10889 TEST=Pick one of the troublesome keys. First press it, then quickly press the power button. Then press the power button followed by the troublesome key. Repeat this process several times for each key, it should not reset the system. Press power + reload, this should still reset the system. Pressing and holding power should initiate a shutdown. Change-Id: Ib60d2ebbb57eb8a3c135662514ec622c37a7eb07 Signed-off-by: Charlie Mooney <charliemooney@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/28402 Reviewed-by: David Hendricks <dhendrix@chromium.org>
Diffstat (limited to 'chip/stm32/config-stm32f100.h')
0 files changed, 0 insertions, 0 deletions