From: Rosen Penev <rosenp@gmail.com>
To: linux-watchdog@vger.kernel.org
Cc: Wim Van Sebroeck <wim@linux-watchdog.org>,
Guenter Roeck <linux@roeck-us.net>,
linux-kernel@vger.kernel.org (open list)
Subject: [PATCHv2 0/2] watchdog: ath79: modernize and broaden build coverage
Date: Sat, 23 May 2026 18:50:40 -0700 [thread overview]
Message-ID: <20260524015042.175271-1-rosenp@gmail.com> (raw)
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
next reply other threads:[~2026-05-24 1:51 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-24 1:50 Rosen Penev [this message]
2026-05-24 1:50 ` [PATCHv2 1/2] watchdog: ath79_wdt: select OF and COMPILE_TEST Rosen Penev
2026-05-24 2:11 ` sashiko-bot
2026-05-24 2:19 ` Rosen Penev
2026-05-24 13:41 ` Guenter Roeck
2026-05-24 1:50 ` [PATCHv2 2/2] watchdog: ath79: convert to watchdog_device Rosen Penev
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260524015042.175271-1-rosenp@gmail.com \
--to=rosenp@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-watchdog@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=wim@linux-watchdog.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.