Skip to contentSkip to conversation

watchdog fixes for v7.4-rc4

GIT PULL Merged Guenter Roeck 2 participants 2 messages Nov 20 – Nov 21 Watchdog device drivers

lore
Share & tools
lore

Guenter Roeck

author maintainer
#0 lore raw

Hi Linus,

Please pull watchdog fixes for Linux v7.4-rc4 from signed tag:

git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git watchdog-for-v7.4-rc4

Thanks,
Guenter
------

The following changes since commit aebb7274476403040d582c61478df8f4a7bf9cd3:

Linux 7.4-rc3 (2026-11-15 14:30:11 -0800)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git tags/watchdog-for-v7.4-rc4

for you to fetch changes up to d8cda274400b52c5bb542158ae9f220f72f059f0:

watchdog: core: Update last_keepalive in watchdog_start() (2026-11-16 13:26:12 -0800)

----------------------------------------------------------------
watchdog fixes for v7.4-rc4

* Core registration and reference counting: clear dangling wd_data pointers and stop timers/workers on registration failure, release unclaimed running-watchdog references, avoid unbalanced module_put() in watchdog_open(), and restore WDOG_HW_RUNNING if stop() fails.

* Core locking and keepalive state: add missing wd_data and old_wd_data locking in open, unregister, and last_hw_keepalive paths, and update WDOG_ACTIVE and last_keepalive before pinging a running watchdog in watchdog_start().

* Core suspend/resume: prevent in-flight ping work from re-arming the keepalive timer and stop the software pretimeout hrtimer while suspended to avoid spurious pretimeout events.

* stm32_iwdg: set drvdata before requesting the pretimeout IRQ to avoid a NULL dereference, serialize EWCR register updates with a spinlock, and use devm_pm_set_wake_irq() to fix wake_irq leaks.

* npcm: keep the clock prepared from probe so the atomic restart handler only calls clk_enable() instead of sleeping during reboot.

----------------------------------------------------------------
Antonio Borneo (3):
watchdog: stm32_iwdg: set driver data before requesting interrupt
watchdog: stm32_iwdg: serialize accesses to EWCR register
watchdog: stm32_iwdg: use managed variant of dev_pm_set_wake_irq()

Guenter Roeck (8):
watchdog: core: Clear wd_data pointer on errors
watchdog: core: Add missing locks
watchdog: core: Prevent ping worker from re-arming timer on suspend
watchdog: core: Stop pretimeout hrtimer on suspend
watchdog: core: Restore WDOG_HW_RUNNING if stopping watchdog fails
watchdog: core: Cancel timer if cdev_device_add() fails
watchdog: core: Fix unbalanced module_put() in watchdog_open()
watchdog: core: Update last_keepalive in watchdog_start()

Zhao Feng (1):
watchdog: npcm: fix sleeping clock call in restart handler

 drivers/watchdog/npcm_wdt.c                    |  19 ++-
 drivers/watchdog/stm32_iwdg.c                  |  31 +++--
 drivers/watchdog/watchdog_core.h               |   1 +
 drivers/watchdog/watchdog_dev.c                | 154 ++++++++++++++++++-------
 drivers/watchdog/watchdog_hrtimer_pretimeout.c |   3 +-
 5 files changed, 152 insertions(+), 56 deletions(-)
merge bot Merged
#1 lore raw
The pull request you sent on Fri, 20 Nov 2026 13:05:27 -0800:

The pull request you sent on Fri, 20 Nov 2026 13:05:27 -0800:

Quoted 1 line

git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git watchdog-for-v7.4-rc4

has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/7d51f37ed48e11a0a073ec428abe9d61c4449072

Thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/prtracker.html