From: Johannes Schneider <johannes.schneider@leica-geosystems.com>
To: barebox@lists.infradead.org, Sascha Hauer <s.hauer@pengutronix.de>
Cc: Johannes Schneider <johannes.schneider@leica-geosystems.com>,
Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: [PATCH] watchdog: imxwd: don't claim a warm reset with fsl,ext-reset-output
Date: Fri, 27 Nov 2026 08:11:53 +0000 [thread overview]
Message-ID: <20261127081154.3957843-1-johannes.schneider@leica-geosystems.com> (raw)
With fsl,ext-reset-output, imxwd resets the SoC by asserting WDOG_B
instead of the internal reset. The external reset circuit, usually the
PMIC, then takes the SoC through a power-on reset, which clears the SRC
general purpose registers the BootROM evaluates on a warm reset. A
reboot mode set beforehand, such as serial download, is lost, yet
imxwd is listed as warm restart capable and picked by reset -w.
Register imxwd as warm restart capable only when it uses the internal
reset.
Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Johannes Schneider <johannes.schneider@leica-geosystems.com>
---
drivers/watchdog/imxwd.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/watchdog/imxwd.c b/drivers/watchdog/imxwd.c
index e74638f941..6e537e6c7a 100644
--- a/drivers/watchdog/imxwd.c
+++ b/drivers/watchdog/imxwd.c
@@ -225,7 +225,8 @@ static int imx21_wd_init_no_warm_reset(struct imx_wd *priv)
static int imx21_wd_init(struct imx_wd *priv)
{
- priv->restart.flags = RESTART_WARM;
+ if (!priv->ext_reset)
+ priv->restart.flags = RESTART_WARM;
return imx21_wd_init_no_warm_reset(priv);
}
--
2.43.0
next reply other threads:[~2026-11-27 8:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-27 8:11 Johannes Schneider [this message]
2026-11-27 9:12 ` Ahmad Fatoum
2026-11-27 9:23 ` Johannes Schneider
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=20261127081154.3957843-1-johannes.schneider@leica-geosystems.com \
--to=johannes.schneider@leica-geosystems.com \
--cc=a.fatoum@pengutronix.de \
--cc=barebox@lists.infradead.org \
--cc=s.hauer@pengutronix.de \
/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