From 98a1d2f9c731968e0258d8614b0a83d34391f222 Mon Sep 17 00:00:00 2001 From: Daisuke Nojiri Date: Thu, 13 Jul 2017 13:19:01 -0700 Subject: Fizz: Boot automatically on recovery request This patch clears RESET_FLAG_AP_OFF on recovery boot so that the system boots immediately regardless of the previous power state. BUG=b:63669512 BRANCH=none TEST=Verify the followings on reworked Fizz: 1. Press RB and PB in S0: FAIL(*1)/PASS 2. Press RB and PB in S5: FAIL(*1)/PASS 3. Unplug AC in S0 then press RB and plug in AC: PASS/PASS 4. Unplug AC in S5 then press RB and plug in AC: PASS/PASS (*1: b:63668669) Change-Id: If300fc9ec28ff0f7833e84a02e174e501b6a5016 Reviewed-on: https://chromium-review.googlesource.com/570948 Commit-Ready: Daisuke Nojiri Tested-by: Daisuke Nojiri Reviewed-by: Aaron Durbin --- common/button.c | 1 + 1 file changed, 1 insertion(+) diff --git a/common/button.c b/common/button.c index bc66ae6611..05217060cc 100644 --- a/common/button.c +++ b/common/button.c @@ -180,6 +180,7 @@ void button_init(void) #ifdef CONFIG_BUTTON_RECOVERY if (is_recovery_boot()) { + system_clear_reset_flags(RESET_FLAG_AP_OFF); host_set_single_event(EC_HOST_EVENT_KEYBOARD_RECOVERY); button_check_hw_reinit_required(); } -- cgit v1.2.1