diff options
| author | Casey Connolly <[email protected]> | 2026-01-21 01:36:51 +0100 |
|---|---|---|
| committer | Casey Connolly <[email protected]> | 2026-03-24 11:51:52 +0100 |
| commit | 1cf505e51b49438271f4b36a648b93b618f13a8e (patch) | |
| tree | 639270ce5c0bc42a03782438bcb28dbd32e1827a | |
| parent | 4577a672eceaf7494cc42f9df05401e7beeab0b1 (diff) | |
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 <[email protected]>
Reviewed-by: Sumit Garg <[email protected]>
Reviewed-by: Tom Rini <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Casey Connolly <[email protected]>
| -rw-r--r-- | drivers/watchdog/Kconfig | 1 | ||||
| -rw-r--r-- | drivers/watchdog/qcom-wdt.c | 2 |
2 files changed, 2 insertions, 1 deletions
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 = { |
