Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

watchdog: dw_wdt: stop on reboot

HW running watchdogs are just watchdogs that are enabled before the
Linux driver is probed, usually by the bootloader (eg. U-Boot).

When the system is shutting down, the mechanism for keeping a HW running
watchdog pinged is also stopped, but the watchdog itself is not stopped,
causing a reset, and preventing the system from being shut down.

Opt into stopping watchdogs on reboot.

Signed-off-by: Cosmin Tanislav <cosmin.tanislav@analog.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20221118150809.102505-1-cosmin.tanislav@analog.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>

authored by

Cosmin Tanislav and committed by
Wim Van Sebroeck
7bfd2747 0d9e42e3

+1
+1
drivers/watchdog/dw_wdt.c
··· 663 663 platform_set_drvdata(pdev, dw_wdt); 664 664 665 665 watchdog_set_restart_priority(wdd, 128); 666 + watchdog_stop_on_reboot(wdd); 666 667 667 668 ret = watchdog_register_device(wdd); 668 669 if (ret)