diff mbox

[U-Boot,4/4] sniper: Clear reboot mode garbage on cold reset

Message ID 1456597604-10981-5-git-send-email-contact@paulk.fr
State Accepted
Commit 6add08e97a012b47e904ec0f3d3363739fbe2555
Delegated to: Tom Rini
Headers show

Commit Message

Paul Kocialkowski Feb. 27, 2016, 6:26 p.m. UTC
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 <contact@paulk.fr>
---
 board/lge/sniper/sniper.c | 3 +++
 1 file changed, 3 insertions(+)

Comments

Tom Rini March 15, 2016, 11:52 a.m. UTC | #1
On Sat, Feb 27, 2016 at 07:26:44PM +0100, Paul Kocialkowski wrote:

> 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 <contact@paulk.fr>

Reviewed-by: Tom Rini <trini@konsulko.com>
Tom Rini March 17, 2016, 1:57 a.m. UTC | #2
On Sat, Feb 27, 2016 at 07:26:44PM +0100, Paul Kocialkowski wrote:

> 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 <contact@paulk.fr>
> Reviewed-by: Tom Rini <trini@konsulko.com>

Applied to u-boot/master, thanks!
diff mbox

Patch

diff --git a/board/lge/sniper/sniper.c b/board/lge/sniper/sniper.c
index 6726866..29a7045 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.