diff options
| author | 2026-09-11 11:05:31 +0800 | |
|---|---|---|
| committer | 2026-09-21 07:25:21 -0700 | |
| commit | 1c81d4a5cda2381dd764e418bdf5d15fbe62b588 (patch) | |
| tree | fc9bdcbdd04aa818df322b9c34dbb2816d029b6a /scripts/Makefile.thinlto | |
| parent | watchdog: PM: use DEFINE_SIMPLE_DEV_PM_OPS and pm_sleep_ptr for dev_pm_ops (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 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
