diff options
| author | Igor Velkov <iav@iav.lv> | 2026-10-20 20:28:37 +0300 |
|---|---|---|
| committer | Guenter Roeck <linux@roeck-us.net> | 2026-11-08 17:45:19 -0800 |
| commit | b10d5686c1a2dc23b715b1430d48dad3e605f62b (patch) | |
| tree | 51076172e2347082ab69ad52b5f0a1419532bb30 /tools/perf/scripts/python | |
| parent | ea9514f06a4a6c6df462da78cda9ff283a8b564f (diff) | |
watchdog: meson_gxbb_wdt: fix suspend/resume handling of HW_RUNNING watchdog
meson_gxbb_wdt_suspend() and meson_gxbb_wdt_resume() only check
watchdog_active(). Since commit 6adbfbab0f03 ("watchdog: meson: keep
running if already active"), probe keeps a watchdog left running by the
bootloader and sets WDOG_HW_RUNNING. If userspace never opens the
device, WDOG_ACTIVE stays clear and the timer is not stopped for system
suspend.
On an ODROID-HC4 (S905X3) whose U-Boot starts the watchdog, with no
userspace owner, the board does not wake from deep suspend
(rtcwake -m mem -s 60) in 2 of 2 attempts and needs a power cycle.
Stop the timer on suspend and restart it on resume also when it is only
running in hardware, as sp805_wdt does. With this change the board
wakes from deep suspend in 4 of 4 attempts, and the kernel pings the
watchdog again after resume.
Fixes: 6adbfbab0f03 ("watchdog: meson: keep running if already active")
Signed-off-by: Igor Velkov <iav@iav.lv>
Link: https://patch.msgid.link/20261020-meson-gxbb-wdt-suspend-v1-1-d5abe4340008@iav.lv
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
