From 1cf505e51b49438271f4b36a648b93b618f13a8e Mon Sep 17 00:00:00 2001 From: Casey Connolly Date: Wed, 21 Jan 2026 01:36:51 +0100 Subject: 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 Reviewed-by: Sumit Garg Reviewed-by: Tom Rini Link: https://patch.msgid.link/20260121003659.69305-1-casey.connolly@linaro.org Signed-off-by: Casey Connolly --- drivers/watchdog/Kconfig | 1 + drivers/watchdog/qcom-wdt.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig index 35ae7d106b1..416d29d256a 100644 --- a/drivers/watchdog/Kconfig +++ b/drivers/watchdog/Kconfig @@ -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 diff --git a/drivers/watchdog/qcom-wdt.c b/drivers/watchdog/qcom-wdt.c index e4ebb1f31d4..a8d7e7a7950 100644 --- a/drivers/watchdog/qcom-wdt.c +++ b/drivers/watchdog/qcom-wdt.c @@ -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 = { -- cgit v1.2.3