diff options
| author | Tzung-Bi Shih <tzungbi@kernel.org> | 2026-08-29 00:13:44 +0800 |
|---|---|---|
| committer | Guenter Roeck <linux@roeck-us.net> | 2026-09-09 14:15:53 -0700 |
| commit | 4f6817c9eff4aa1078e16652d82e4b7ef4ffae3e (patch) | |
| tree | 95539ee0eb10b2bb8f1c5db3592d0781a53c5ae9 /scripts/basic/split-include.c | |
| parent | 3db2df24e7f11fb117718f6abe326628d91bc500 (diff) | |
| download | linux-4f6817c9eff4aa1078e16652d82e4b7ef4ffae3e.tar.gz linux-4f6817c9eff4aa1078e16652d82e4b7ef4ffae3e.zip | |
watchdog: msc313e: Fix spurious reset on suspend
If the hardware watchdog was started by the bootloader and the device is
suspended before userspace opens it, the ping worker (from watchdog
core) is frozen and the active hardware timer continues running. This
leads to a spurious system reset.
Check both watchdog_active() and watchdog_hw_running() when deciding
whether to start or stop the watchdog during suspend and resume.
Additionally, call watchdog_stop_ping_on_suspend() to ensure the ping
worker be correctly paused and restarted during suspend and resume.
Fixes: ffd264bd152c ("watchdog: msc313e: Check if the WDT was running at boot")
Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
Link: https://patch.msgid.link/20260828161348.13212-6-tzungbi@kernel.org
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'scripts/basic/split-include.c')
0 files changed, 0 insertions, 0 deletions
