diff options
| author | Li Jun <lijun01@kylinos.cn> | 2026-09-11 11:05:31 +0800 |
|---|---|---|
| committer | Guenter Roeck <linux@roeck-us.net> | 2026-09-21 07:25:21 -0700 |
| commit | 1c81d4a5cda2381dd764e418bdf5d15fbe62b588 (patch) | |
| tree | fc9bdcbdd04aa818df322b9c34dbb2816d029b6a /tools/perf/scripts/python/bin | |
| parent | 17908f89973510e8af7db8a53d3f3df484651c5b (diff) | |
watchdog: sp805_wdt: fix suspend/resume handling of HW_RUNNING watchdog
sp805_wdt_suspend() and sp805_wdt_resume() only check watchdog_active(),
when the watchdog is left running by the driver sets
WDOG_HW_RUNNING in sp805_wdt_probe() but userspace never opens the
device, so WDOG_ACTIVE remains cleared, the wdt_disable() will not be
executed in sp805_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.
Signed-off-by: Li Jun <lijun01@kylinos.cn>
Link: https://patch.msgid.link/20260911030531.837140-1-lijun01@kylinos.cn
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
