From: Lee Jones <lee@kernel.org>
To: lee@kernel.org,
Support Opensource <support.opensource@diasemi.com>,
Wim Van Sebroeck <wim@linux-watchdog.org>,
Guenter Roeck <linux@roeck-us.net>,
Mariusz Wojtasik <mariusz.wojtasik@diasemi.com>,
Adam Thomson <DLG-Adam.Thomson.Opensource@dm.renesas.com>,
Primoz Fiser <primoz.fiser@norik.com>,
linux-watchdog@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org
Subject: [PATCH 1/6] watchdog: da9063: Stop ping worker on system suspend
Date: Thu, 3 Dec 2026 17:30:04 +0000 [thread overview]
Message-ID: <20261203173039.1142495-2-lee@kernel.org> (raw)
In-Reply-To: <20261203173039.1142495-1-lee@kernel.org>
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@vger.kernel.org
Signed-off-by: Lee Jones <lee@kernel.org>
---
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
next prev parent reply other threads:[~2026-12-03 17:30 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-03 17:30 [PATCH 0/6] watchdog: Fix High issues reported by Sashiko Lee Jones
2026-12-03 17:30 ` Lee Jones [this message]
2026-12-03 17:30 ` [PATCH 2/6] watchdog: dw_wdt: Guard shared IRQ handler during system suspend and resume Lee Jones
2026-12-03 17:30 ` [PATCH 3/6] watchdog: npcm: Enable clock before checking running state in probe Lee Jones
2026-12-03 17:30 ` [PATCH 4/6] watchdog: sbsa: Evaluate MediaTek WS0 workaround after IRQ fallback Lee Jones
2026-12-03 17:30 ` [PATCH 5/6] watchdog: octeon-wdt: Serialise countdown and IRQ state with raw spinlock Lee Jones
2026-12-03 17:30 ` [PATCH 6/6] watchdog: rzv2h: Avoid 32-bit overflow in max_hw_heartbeat_ms calculation Lee Jones
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261203173039.1142495-2-lee@kernel.org \
--to=lee@kernel.org \
--cc=DLG-Adam.Thomson.Opensource@dm.renesas.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-watchdog@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=mariusz.wojtasik@diasemi.com \
--cc=primoz.fiser@norik.com \
--cc=stable@vger.kernel.org \
--cc=support.opensource@diasemi.com \
--cc=wim@linux-watchdog.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox