From f466ce078261a513ffd561d6deaaa15947424e19 Mon Sep 17 00:00:00 2001 From: Keith Short Date: Mon, 15 Mar 2021 12:00:31 -0600 Subject: zephyr: Fix recovery mode The Zephyr initialization was missing a call to lpc_int_mask(), which caused the detected recovery event to be ignored. Add this call before keyboard_scan_init() to match Chromium EC initialization. Note - this requires CL:2731180 for recovery mode be detected correctly. BUG=b:182808955 BRANCH=none TEST=zmake testall TEST=Press recovery combo, verify depthcharge starts recovery mode. Signed-off-by: Keith Short Change-Id: If03a837208d6fc025aef1359e72c09fcf39b5656 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2760805 Commit-Queue: Simon Glass Reviewed-by: Simon Glass --- common/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/main.c') diff --git a/common/main.c b/common/main.c index 2e9fe5a444..c1626e41fc 100644 --- a/common/main.c +++ b/common/main.c @@ -185,7 +185,7 @@ test_mockable __keep int main(void) /* * Keyboard scan init/Button init can set recovery events to * indicate to host entry into recovery mode. Before this is - * done, lpc always report mask needs to be initialized + * done, LPC_HOST_EVENT_ALWAYS_REPORT mask needs to be initialized * correctly. */ #ifdef CONFIG_HOSTCMD_X86 -- cgit v1.2.1