]> git.baikalelectronics.ru Git - kernel.git/commit
watchdog: msc313e: Check if the WDT was running at boot
authorDaniel Palmer <daniel@0x0f.com>
Tue, 28 Dec 2021 07:34:27 +0000 (16:34 +0900)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Wed, 5 Jan 2022 09:38:51 +0000 (10:38 +0100)
commit019df7f8c76000eae8faec0d4f290973d018446b
treea3f47abf6f91b16f2ad713456b7f38444da38aeb
parentc545b901494c4808c0e9e27da3e067e6126683d4
watchdog: msc313e: Check if the WDT was running at boot

Check if the WDT was running at boot and set the running
flag if it was. This prevents the system from getting
rebooted if the userland daemon doesn't take over soon enough
or there isn't a userland daemon at all.

Signed-off-by: Daniel Palmer <daniel@0x0f.com>
Reviewed-by: Romain Perier <romain.perier@gmail.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20211228073427.2443174-1-daniel@0x0f.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/msc313e_wdt.c