watchdog: imx7ulp_wdt: keep already running watchdog enabled
authorSascha Hauer <s.hauer@pengutronix.de>
Wed, 3 Jul 2024 11:16:03 +0000 (13:16 +0200)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Wed, 10 Jul 2024 18:01:30 +0000 (20:01 +0200)
commitb771d14f417e9d8030ab000b3341cf71266be90e
treea9a9afc53c7acf8c86a2a6ee7c5058369be30d31
parent9dca7a0ae50c9cff5c510aeb6587f92e530fd1fe
watchdog: imx7ulp_wdt: keep already running watchdog enabled

When the bootloader enabled the watchdog before Kernel started then
keep it enabled during initialization. Otherwise the time between
the watchdog probing and the userspace taking over the watchdog
won't be covered by the watchdog. When keeping the watchdog enabled
inform the Kernel about this by setting the WDOG_HW_RUNNING so that
the periodic watchdog feeder is started when desired.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20240703111603.1096424-1-s.hauer@pengutronix.de
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/imx7ulp_wdt.c