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

watchdog: da9052_wdt: respect TWDMIN

We have to wait at least the minimium time for the watchdog window
(TWDMIN) before writings to the wdt register after the
watchdog is activated.
Otherwise the chip will assert TWD_ERROR and power down to reset mode.

Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20250326-da9052-fixes-v3-4-a38a560fef0e@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>

authored by

Marcus Folkesson and committed by
Wim Van Sebroeck
325f510f 8807f0af

+1
+1
drivers/watchdog/da9052_wdt.c
··· 180 180 da9052_wdt = &driver_data->wdt; 181 181 182 182 da9052_wdt->timeout = DA9052_DEF_TIMEOUT; 183 + da9052_wdt->min_hw_heartbeat_ms = DA9052_TWDMIN; 183 184 da9052_wdt->info = &da9052_wdt_info; 184 185 da9052_wdt->ops = &da9052_wdt_ops; 185 186 da9052_wdt->parent = dev;