diff options
author | Nicolas Boichat <drinkcat@chromium.org> | 2018-02-01 11:38:29 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-02-05 19:08:21 -0800 |
commit | 1af3e5362689497cbc5896cad8e907dd85c7e8ce (patch) | |
tree | 9daac181b8d5c8b00bdf2c494c24878a67492401 /include/keyboard_scan.h | |
parent | 59fe7c7a5861f95da3d3539a55e3ad019a615517 (diff) | |
download | chrome-ec-1af3e5362689497cbc5896cad8e907dd85c7e8ce.tar.gz |
keyboard_scan: Disable when USB is suspended without wake
Keyboard matrix scanning can be disabled when the USB interface is
disabled without setting the remote wake feature
(USB_REQ_FEATURE_DEVICE_REMOTE_WAKEUP), as events would be
ignored anyway.
BRANCH=none
BUG=b:72683995
TEST=keyboard matrix scanning is disabled when lid is closed.
Change-Id: I0b2346cc3426b9ef51127424f9953fd5c20ecd49
Signed-off-by: Nicolas Boichat <drinkcat@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/897068
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'include/keyboard_scan.h')
-rw-r--r-- | include/keyboard_scan.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/keyboard_scan.h b/include/keyboard_scan.h index bce5046c9e..65492c59bd 100644 --- a/include/keyboard_scan.h +++ b/include/keyboard_scan.h @@ -87,6 +87,7 @@ enum kb_scan_disable_masks { KB_SCAN_DISABLE_LID_CLOSED = (1<<0), KB_SCAN_DISABLE_POWER_BUTTON = (1<<1), KB_SCAN_DISABLE_LID_ANGLE = (1<<2), + KB_SCAN_DISABLE_USB_SUSPENDED = (1<<3), }; #ifdef HAS_TASK_KEYSCAN |