From: Tzung-Bi Shih <tzungbi@kernel.org>
To: Paul Louvel <paul.louvel@bootlin.com>
Cc: Wim Van Sebroeck <wim@linux-watchdog.org>,
Guenter Roeck <linux@roeck-us.net>,
linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org,
Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Subject: Re: [PATCH v4 5/6] watchdog: w83627hf_wdt: Store Super I/O configurations in platform data
Date: Mon, 19 Oct 2026 15:23:49 +0000 [thread overview]
Message-ID: <atY2BXHPAZ95vCkD@google.com> (raw)
In-Reply-To: <20261013-w83627hf_wdt-improvements-v4-5-b6f6b60a9566@bootlin.com>
On Tue, Oct 13, 2026 at 03:58:49PM +0200, Paul Louvel wrote:
> Instead of using global variables, store Super I/O related
> configurations in platform data.
>
> Signed-off-by: Paul Louvel <paul.louvel@bootlin.com>
With a few nits,
Reviewed-by: Tzung-Bi Shih <tzungbi@kernel.org>
> /*
> * On some systems, the NCT6791D comes with a companion chip and the
> * watchdog function is in this companion chip. We must use a different
> * unlocking sequence to access the companion chip.
> */
> -static int __init wdt_use_alt_key(const struct dmi_system_id *d)
> -{
> - wdt_cfg_enter = 0x88;
> - wdt_cfg_leave = 0xBB;
>
Please remove the blank line as well.
> - return 0;
> -}
> +static const struct w83627hf_sio_pdata w83627hf_sio_pdata_alt = {
> + .cfg_enter = 0x88,
> + .cfg_leave = 0xBB
> +};
>
> static const struct dmi_system_id wdt_dmi_table[] __initconst = {
> {
> @@ -554,7 +564,7 @@ static const struct dmi_system_id wdt_dmi_table[] __initconst = {
> DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "INVES"),
> DMI_EXACT_MATCH(DMI_BOARD_NAME, "SHARKBAY"),
> },
> - .callback = wdt_use_alt_key,
> + .driver_data = (void *) &w83627hf_sio_pdata_alt
^
Please remove the extra space.
next prev parent reply other threads:[~2026-10-19 15:23 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-13 13:58 [PATCH v4 0/6] watchdog: w83627hf_wdt: Convert driver to the driver model and add minute support Paul Louvel
2026-10-13 13:58 ` [PATCH v4 1/6] watchdog: w83627hf_wdt: Fix watchdog identity truncation Paul Louvel
2026-10-19 15:22 ` Tzung-Bi Shih
2026-10-13 13:58 ` [PATCH v4 2/6] watchdog: w83627hf_wdt: Replace magic numbers with descriptive macros Paul Louvel
2026-10-19 15:22 ` Tzung-Bi Shih
2026-10-13 13:58 ` [PATCH v4 3/6] watchdog: w83627hf_wdt: Convert to platform driver model Paul Louvel
2026-10-19 15:22 ` Tzung-Bi Shih
2026-10-13 13:58 ` [PATCH v4 4/6] watchdog: w83627hf_wdt: Move register offsets into driver data Paul Louvel
2026-10-19 15:23 ` Tzung-Bi Shih
2026-10-13 13:58 ` [PATCH v4 5/6] watchdog: w83627hf_wdt: Store Super I/O configurations in platform data Paul Louvel
2026-10-19 15:23 ` Tzung-Bi Shih [this message]
2026-10-13 13:58 ` [PATCH v4 6/6] watchdog: w83627hf_wdt: Add minute mode counting Paul Louvel
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=atY2BXHPAZ95vCkD@google.com \
--to=tzungbi@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-watchdog@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=paul.louvel@bootlin.com \
--cc=thomas.petazzoni@bootlin.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®