[PATCH 1/6] watchdog: da9063: Stop ping worker on system suspend
From: Lee Jones
Date: Thu Dec 03 2026 - 12:31:03 EST
da9063_wdt_probe() sets min_hw_heartbeat_ms and may set WDOG_HW_RUNNING,
and da9063_wdt_suspend() stops the watchdog when dlg,use-sw-pm is set,
but watchdog_stop_ping_on_suspend() is never called. Because
system_state only switches to SYSTEM_SUSPEND after dpm_suspend() has
already suspended the I2C bus and returns to SYSTEM_RUNNING before
dpm_resume() restores it, the non-freezable watchdog kworker can issue
I2C transfers over a suspended bus.
Call watchdog_stop_ping_on_suspend() in da9063_wdt_probe() before
registering the watchdog device.
Fixes: a7ceca4398bc ("watchdog: da9063: optionally disable watchdog during suspend")
Closes: https://sashiko.dev/#/bug/linux-896288e5-bcfa-4a54-b0d6-ddb5d024eff1
Cc: stable@xxxxxxxxxxxxxxx
Signed-off-by: Lee Jones <lee@xxxxxxxxxx>
---
drivers/watchdog/da9063_wdt.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/watchdog/da9063_wdt.c b/drivers/watchdog/da9063_wdt.c
index ca901a755b3a..7ebf8d9e04ac 100644
--- a/drivers/watchdog/da9063_wdt.c
+++ b/drivers/watchdog/da9063_wdt.c
@@ -260,6 +260,8 @@ static int da9063_wdt_probe(struct platform_device *pdev)
set_bit(WDOG_HW_RUNNING, &wdd->status);
}
+ watchdog_stop_ping_on_suspend(wdd);
+
return devm_watchdog_register_device(dev, wdd);
}
--
2.56.1.911.g883d8bcb20-goog