diff options
author | Furquan Shaikh <furquan@chromium.org> | 2017-10-24 06:49:47 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-10-24 12:57:45 -0700 |
commit | 708f6f1f21d4cee970c6bf7dadefee3936af228d (patch) | |
tree | ca066b948bbf51aca4ca6e8f3ac9c88d6633ee7a /include/lpc.h | |
parent | 97a37297557affef46b04330a4b3911b7f822dd7 (diff) | |
download | chrome-ec-708f6f1f21d4cee970c6bf7dadefee3936af228d.tar.gz |
host_event: Perform lpc_init_mask before keyboard/button init
keyboard/button init are responsible for checking if user requested
manual recovery. However, by this time, hook init is not run and hence
host event set operation for manual recovery is dropped. This change
adds a call to lpc_init_mask before keyboard/button init operations
are performed.
BUG=b:68189465
BRANCH=None
TEST=Verified that manual recovery works fine. Recovery using software
command works too:
reboot ap-off
hostevent set 0x4000
powerb
Change-Id: I15cb648d4b253a523293c7ab2cd3e8e08e31a763
Signed-off-by: Furquan Shaikh <furquan@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/735799
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-by: Shawn N <shawnn@chromium.org>
Diffstat (limited to 'include/lpc.h')
-rw-r--r-- | include/lpc.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/lpc.h b/include/lpc.h index a405e93d59..05b8d660e3 100644 --- a/include/lpc.h +++ b/include/lpc.h @@ -149,4 +149,7 @@ void lpc_update_host_event_status(void); */ uint32_t lpc_override_always_report_mask(void); +/* Initialize LPC masks. */ +void lpc_init_mask(void); + #endif /* __CROS_EC_LPC_H */ |