watchdog: qcom: stop watchdog by default

Prevent the Qualcomm watchdog from autostarting and ensure it's stopped
when the driver probed. In some cases the watchdog is left running by
a previous bootloader stage. Disable autostart so it isn't left running
when we boot into the OS, this behaviour can be changed by enabling
autostart in the board defconfig.

Reviewed-by: Stefan Roese <stefan.roese@mailbox.org>
Reviewed-by: Sumit Garg <sumit.garg@oss.qualcomm.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Link: https://patch.msgid.link/20260121003659.69305-1-casey.connolly@linaro.org
Signed-off-by: Casey Connolly <casey.connolly@linaro.org>
This commit is contained in:
Casey Connolly
2026-01-21 01:36:51 +01:00
parent 4577a672ec
commit 1cf505e51b
2 changed files with 2 additions and 1 deletions

View File

@@ -16,6 +16,7 @@ config WATCHDOG_AUTOSTART
depends on WDT
default n if ARCH_SUNXI
default n if ARCH_STM32MP
default n if ARCH_SNAPDRAGON
default y
help
Automatically start watchdog timer and start servicing it during

View File

@@ -129,7 +129,7 @@ static int qcom_wdt_probe(struct udevice *dev)
wdt->clk_rate = (ulong)rate;
return 0;
return qcom_wdt_stop(dev);
}
static const struct wdt_ops qcom_wdt_ops = {