From dcac8843a8904c939f70489b8dd410cde32b7df5 Mon Sep 17 00:00:00 2001 From: Paul Kocialkowski Date: Sat, 27 Feb 2016 19:19:15 +0100 Subject: [PATCH] kc1: Clear reboot mode garbage on cold reset Reboot mode garbage is found on cold reset and might be seen as valid on the next warm reset, thus it has to be cleared on cold reset. Signed-off-by: Paul Kocialkowski --- board/amazon/kc1/kc1.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/board/amazon/kc1/kc1.c b/board/amazon/kc1/kc1.c index 54e3fa31a7..ca63af8be4 100644 --- a/board/amazon/kc1/kc1.c +++ b/board/amazon/kc1/kc1.c @@ -110,6 +110,9 @@ int misc_init_r(void) omap_reboot_mode_clear(); } else { + /* Reboot mode garbage may still be valid, so clear it. */ + omap_reboot_mode_clear(); + /* * When not rebooting, valid power on reasons are either the * power button, charger plug or USB plug. -- 2.39.5