watchdog: dw_wdt: stop on reboot
authorCosmin Tanislav <demonsingur@gmail.com>
Fri, 18 Nov 2022 15:08:09 +0000 (17:08 +0200)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Sat, 18 Feb 2023 14:11:32 +0000 (15:11 +0100)
commit7bfd2747d3ec2c400857084527448c172a720d2a
tree90019910deb137fe73efeaac2ca6ec418e46a93a
parent0d9e42e3c8ccde51a9ff7c49684ed7a3805ebd52
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>
drivers/watchdog/dw_wdt.c