diff options
| author | Li Jun <lijun01@kylinos.cn> | 2026-09-14 14:23:53 +0800 |
|---|---|---|
| committer | Guenter Roeck <linux@roeck-us.net> | 2026-09-16 17:41:28 -0700 |
| commit | 5071122bf5a628494db16d98d253f622a5aab074 (patch) | |
| tree | 084597dd476fee1dcf789aa25e2cdda2ede4a77a /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | 22737cfced627ffcb4b5c36d63bb3d4476f63213 (diff) | |
| download | linux-next-5071122bf5a628494db16d98d253f622a5aab074.tar.gz linux-next-5071122bf5a628494db16d98d253f622a5aab074.zip | |
watchdog: da9062: fix suspend/resume handling of HW_RUNNING watchdog
da9062_wdt_suspend() and da9062_wdt_resume() only check watchdog_active(),
when the watchdog is left running by the driver sets
WDOG_HW_RUNNING in da9062_wdt_probe() but userspace never opens the
device, so WDOG_ACTIVE remains cleared, the wdt_disable() will not be
executed in da9062_wdt_suspend. In this case, the suspend callback is
a no-op and the watchdog keeps counting during system suspend,
leading to an unexpected system reset.
Check WDOG_HW_RUNNING and wdt->wdd,can fix this issue.
Fixes: f6c98b08381c7 ("watchdog: da9062: add power management ops")
Cs: stable@vger.kernel.org
Signed-off-by: Li Jun <lijun01@kylinos.cn>
Link: https://patch.msgid.link/20260914062353.582205-1-lijun01@kylinos.cn
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions
