]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
watchdog: da9052_wdt: respect TWDMIN
authorMarcus Folkesson <marcus.folkesson@gmail.com>
Wed, 26 Mar 2025 08:29:51 +0000 (09:29 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jun 2025 10:07:35 +0000 (11:07 +0100)
commitf52827a3338cc251b5441eb45c75fbcc6fa4caa4
treeeaa096757b0a0e338a18d4d71cabb090a218ea12
parentb3237d451bf3a4490cb1a76f3b7c91d9888f1c4b
watchdog: da9052_wdt: respect TWDMIN

[ Upstream commit 325f510fcd9cda5a44bcb662b74ba4e3dabaca10 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/watchdog/da9052_wdt.c