[PATCH] watchdog: imxwd: don't claim a warm reset with fsl,ext-reset-output
Johannes Schneider
johannes.schneider at leica-geosystems.com
Fri Nov 27 00:11:53 PST 2026
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 at 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
More information about the barebox
mailing list