Skip to content

watchdog: ath79: modernize and broaden build coverage

Rosen Penev linux-watchdog lkml sashiko-reviews 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 2 repliesIn review
  2. v12 patches 1 replySuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2watchdog: ath79_wdt: select OF and COMPILE_TESTdrivers/watchdog/Kconfig drivers/watchdog/ath79_wdt.c+3 -42 replies
2/2watchdog: ath79: convert to watchdog_devicedrivers/watchdog/ath79_wdt.c+74 -1720 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCHv2 0/2] watchdog: ath79: modernize and broaden build coverage

Patch 1 splits OF out as a hard dependency (the driver has always been OF-only) and broadens COMPILE_TEST coverage from ARM to all architectures, so the driver can be built on non-MIPS targets.

Patch 2 moves the driver off the legacy miscdevice/file_operations interface to the watchdog_device framework. This drops ~100 lines of hand-rolled ioctl, open/release, and busy/expect-close bookkeeping in favor of framework callbacks, fixes get_timeleft() to return seconds instead of raw clock ticks, and properly propagates -EPROBE_DEFER from clk_get(). nowayout, the timeout module parameter, and module .owner are wired through the standard helpers.

Tested on an Archer C7v2; sysupgrade watchdog handoff still works.

v2: addressed review comments

Rosen Penev (2):
watchdog: ath79_wdt: select OF and COMPILE_TEST
watchdog: ath79: convert to watchdog_device

 drivers/watchdog/Kconfig     |   3 +-
 drivers/watchdog/ath79_wdt.c | 250 +++++++++++------------------------
 2 files changed, 77 insertions(+), 176 deletions(-)

--
2.54.0