All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Paul Louvel" <paul.louvel@bootlin.com>
To: "Guenter Roeck" <linux@roeck-us.net>,
	"Paul Louvel" <paul.louvel@bootlin.com>,
	"Wim Van Sebroeck" <wim@linux-watchdog.org>
Cc: "Tzung-Bi Shih" <tzungbi@kernel.org>,
	<linux-watchdog@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
	"Thomas Petazzoni" <thomas.petazzoni@bootlin.com>
Subject: Re: [PATCH v5 5/5] watchdog: w83627hf_wdt: Add minute mode counting
Date: Mon, 09 Nov 2026 14:08:31 +0100	[thread overview]
Message-ID: <DMQPCM8MRHES.2CRX1939ANVY3@bootlin.com> (raw)
In-Reply-To: <865349b3-77a5-406e-96e6-f8187ae112ad@roeck-us.net>

Hi Guenter,

On Tue Oct 27, 2026 at 8:35 PM CET, Guenter Roeck wrote:
>> @@ -504,7 +523,7 @@ static int wdt_probe(struct platform_device *pdev)
>>   	wdd->ops = &wdt_ops;
>>   	wdd->timeout = WATCHDOG_TIMEOUT;
>>   	wdd->min_timeout = 1;
>> -	wdd->max_timeout = 255;
>> +	wdd->max_timeout = WATCHDOG_MAX_TIMEOUT;
>>   
>>   	switch (chip) {
>>   	case nct6102:
>> @@ -526,10 +545,27 @@ static int wdt_probe(struct platform_device *pdev)
>>   	watchdog_set_nowayout(wdd, nowayout);
>>   	watchdog_stop_on_reboot(wdd);
>>   
>> +	wdt_set_timeout(wdd, wdd->timeout);
>> +
>>   	ret = w83627hf_init(wdd, chip);
>>   	if (ret)
>>   		return dev_err_probe(dev, ret, "failed to initialize watchdog\n");
>>   
>> +	if (data->early_timer_val) {
>> +		if (early_disable) {
>
> The purpose of this flag is specifically to disable the watchdog
> "at module load time or kernel boot time". Moving it into the probe
> function would delay that and is therefore undesirable.
>
> On top of that, the flag is pointless in the probe function since
> the watchdog core takes care of pinging the watchdog until
> userspace kicks in if WDOG_HW_RUNNING is set.
>
> Also, any change made in that regard should be independent of
> introducing minute mode support.
>
> Thanks,
> Guenter
>

So, the w83627hf_init() function should be called inside wdt_init(). Then, this
is a problem introduced in patch #2.

Thanks.
Best regards,
-- 
Paul Louvel, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


      reply	other threads:[~2026-11-09 13:08 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-20  8:11 [PATCH v5 0/5] watchdog: w83627hf_wdt: Convert driver to the driver model and add minute support Paul Louvel
2026-10-20  8:11 ` [PATCH v5 1/5] watchdog: w83627hf_wdt: Replace magic numbers with descriptive macros Paul Louvel
2026-10-20  8:11 ` [PATCH v5 2/5] watchdog: w83627hf_wdt: Convert to platform driver model Paul Louvel
2026-10-20  8:59   ` sashiko-bot
2026-10-20 13:29   ` Tzung-Bi Shih
2026-10-20  8:11 ` [PATCH v5 3/5] watchdog: w83627hf_wdt: Move register offsets into driver data Paul Louvel
2026-10-20 13:44   ` Tzung-Bi Shih
2026-10-20  8:11 ` [PATCH v5 4/5] watchdog: w83627hf_wdt: Store Super I/O configurations in platform data Paul Louvel
2026-10-20  8:11 ` [PATCH v5 5/5] watchdog: w83627hf_wdt: Add minute mode counting Paul Louvel
2026-10-20 14:08   ` Tzung-Bi Shih
2026-10-20 15:42     ` Guenter Roeck
2026-10-20 16:28     ` Paul Louvel
2026-10-22 15:09   ` Tzung-Bi Shih
2026-10-27 19:35   ` Guenter Roeck
2026-11-09 13:08     ` Paul Louvel [this message]

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=DMQPCM8MRHES.2CRX1939ANVY3@bootlin.com \
    --to=paul.louvel@bootlin.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-watchdog@vger.kernel.org \
    --cc=linux@roeck-us.net \
    --cc=thomas.petazzoni@bootlin.com \
    --cc=tzungbi@kernel.org \
    --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.