From: Guenter Roeck <linux@roeck-us.net>
To: Marcus Folkesson <marcus.folkesson@gmail.com>
Cc: Support Opensource <support.opensource@diasemi.com>,
Wim Van Sebroeck <wim@linux-watchdog.org>,
linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 4/4] watchdog: da9052_wdt: respect TWDMIN
Date: Tue, 25 Mar 2025 06:05:49 -0700 [thread overview]
Message-ID: <259a249a-6fa8-41b6-8654-1be773c91224@roeck-us.net> (raw)
In-Reply-To: <20250325-da9052-fixes-v2-4-bfac3f07b4a4@gmail.com>
On Tue, Mar 25, 2025 at 08:27:15AM +0100, Marcus Folkesson wrote:
> We have to wait at least the minimium time for the watchdog window
> (TWDMIN) before writings to the wdt register after the
> watchdog is activated.
> Otherwise the chip will assert TWD_ERROR and power down to reset mode.
>
> Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
> ---
> drivers/watchdog/da9052_wdt.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/watchdog/da9052_wdt.c b/drivers/watchdog/da9052_wdt.c
> index b821006fca70480bf3b23a62bded4e66851a537e..1e49cbae7eaec3015264dec891032a56f56e36cc 100644
> --- a/drivers/watchdog/da9052_wdt.c
> +++ b/drivers/watchdog/da9052_wdt.c
> @@ -179,6 +179,7 @@ static int da9052_wdt_probe(struct platform_device *pdev)
> da9052_wdt = &driver_data->wdt;
>
> da9052_wdt->timeout = DA9052_DEF_TIMEOUT;
> + da9052_wdt->min_hw_heartbeat_ms = DA9052_TWDMIN;
> da9052_wdt->info = &da9052_wdt_info;
> da9052_wdt->ops = &da9052_wdt_ops;
> da9052_wdt->parent = dev;
>
> --
> 2.48.1
>
>
prev parent reply other threads:[~2025-03-25 13:05 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-25 7:27 [PATCH v2 0/4] Various fixes for the da9052 watchdog Marcus Folkesson
2025-03-25 7:27 ` [PATCH v2 1/4] watchdog: da9052_wdt: add support for nowayout Marcus Folkesson
2025-03-25 13:01 ` Guenter Roeck
2025-03-25 7:27 ` [PATCH v2 2/4] watchdog: da9052_wdt: use timeout value from external inputs Marcus Folkesson
2025-03-25 13:01 ` Guenter Roeck
2025-03-25 7:27 ` [PATCH v2 3/4] watchdog: da9052_wdt: do not disable wdt during probe Marcus Folkesson
2025-03-25 13:05 ` Guenter Roeck
2025-03-25 7:27 ` [PATCH v2 4/4] watchdog: da9052_wdt: respect TWDMIN Marcus Folkesson
2025-03-25 13:05 ` Guenter Roeck [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=259a249a-6fa8-41b6-8654-1be773c91224@roeck-us.net \
--to=linux@roeck-us.net \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-watchdog@vger.kernel.org \
--cc=marcus.folkesson@gmail.com \
--cc=support.opensource@diasemi.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®