From: Paul Kocialkowski Date: Sat, 27 Feb 2016 18:26:44 +0000 (+0100) Subject: sniper: Clear reboot mode garbage on cold reset X-Git-Url: http://git.dujemihanovic.xyz/html/static/git-favicon.png?a=commitdiff_plain;h=6add08e97a012b47e904ec0f3d3363739fbe2555;p=u-boot.git sniper: 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 Reviewed-by: Tom Rini --- diff --git a/board/lge/sniper/sniper.c b/board/lge/sniper/sniper.c index 6726866d20..29a7045334 100644 --- a/board/lge/sniper/sniper.c +++ b/board/lge/sniper/sniper.c @@ -122,6 +122,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.