From 0729d7ca9e90d13a113d65e6367db044f9485d5b Mon Sep 17 00:00:00 2001 From: Dongil Park Date: Fri, 24 Aug 2018 14:46:44 +0900 Subject: [PATCH] autoboot.c: Disable watchdog when autoboot aborted This patch disable watchdog when autoboot aborted by user. Change-Id: I76699c9ca22123a49ebd3e9d5239301252bd53b9 Signed-off-by: Dongil Park --- common/autoboot.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/common/autoboot.c b/common/autoboot.c index c11fb31236..31a3ed62f1 100644 --- a/common/autoboot.c +++ b/common/autoboot.c @@ -14,6 +14,9 @@ #include #include #include +#if defined(CONFIG_S5P6818_WATCHDOG) +#include +#endif DECLARE_GLOBAL_DATA_PTR; @@ -369,6 +372,12 @@ void autoboot_command(const char *s) disable_ctrlc(prev); /* restore Control C checking */ #endif } +#if defined(CONFIG_S5P6818_WATCHDOG) + else { + /* We should stop watchdog in case of abort */ + watchdog_reset(); + } +#endif #ifdef CONFIG_MENUKEY if (menukey == CONFIG_MENUKEY) { -- 2.34.1