mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCHv3 0/2] watchdog: pika_wdt: portability and timer lifecycle fixes
@ 2026-06-08 21:04 Rosen Penev
  2026-06-08 21:04 ` [PATCHv3 1/2] watchdog: pika_wdt: fix timer lifecycle bugs Rosen Penev
  2026-06-08 21:04 ` [PATCHv3 2/2] watchdog: pika_wdt: enable COMPILE_TEST builds Rosen Penev
  0 siblings, 2 replies; 7+ messages in thread
From: Rosen Penev @ 2026-06-08 21:04 UTC (permalink / raw)
  To: linux-watchdog; +Cc: Wim Van Sebroeck, Guenter Roeck, open list

Fix two timer lifecycle bugs in the PIKA watchdog driver:

 - pikawdt_release() could race with a concurrent open() due to
   clearing the open bit before stopping the timer.
 - pikawdt_exit() unmapped FPGA memory without stopping the ping
   timer first, potentially executing the handler on freed memory.

Then replace powerpc-specific I/O accessors with generic ones to
allow COMPILE_TEST builds on other architectures.

v3: fix sashiko reported issues
v2: fix preexisting issues

Rosen Penev (2):
  watchdog: pika_wdt: fix timer lifecycle bugs
  watchdog: pika_wdt: enable COMPILE_TEST builds

 drivers/watchdog/Kconfig    |  3 ++-
 drivers/watchdog/pika_wdt.c | 12 +++++++-----
 2 files changed, 9 insertions(+), 6 deletions(-)

--
2.54.0

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-06-09  3:09 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-08 21:04 [PATCHv3 0/2] watchdog: pika_wdt: portability and timer lifecycle fixes Rosen Penev
2026-06-08 21:04 ` [PATCHv3 1/2] watchdog: pika_wdt: fix timer lifecycle bugs Rosen Penev
2026-06-08 22:52   ` Guenter Roeck
2026-06-08 21:04 ` [PATCHv3 2/2] watchdog: pika_wdt: enable COMPILE_TEST builds Rosen Penev
2026-06-08 22:55   ` Guenter Roeck
2026-06-08 23:46     ` Rosen Penev
2026-06-09  3:09       ` Guenter Roeck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome