Skip to contentSkip to conversation

watchdog: imx7ulp_wdt: handle the nowayout option

PATCH In review Oleksandr Suvorov 3 participants 3 messages Nov 23, 2025 – Nov 24, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 watchdog: imx7ulp_wdt: handle the nowayout option

The module parameter nowayout indicates whether the watchdog should ever be allowed to stop, but the driver currently ignores this option.

Pass the nowayout parameter to the watchdog core by setting the WDOG_NO_WAY_OUT flag accordingly.

---

 drivers/watchdog/imx7ulp_wdt.c | 1 +
 1 file changed, 1 insertion(+)
drivers/watchdog/imx7ulp_wdt.c +1 -0
index 0f13a30533574..03479110453ce 100644
@@ -346,6 +346,7 @@ static int imx7ulp_wdt_probe(struct platform_device *pdev)
 	watchdog_stop_on_reboot(wdog);
 	watchdog_stop_on_unregister(wdog);
 	watchdog_set_drvdata(wdog, imx7ulp_wdt);
+	watchdog_set_nowayout(wdog, nowayout);
 
 	imx7ulp_wdt->hw = of_device_get_match_data(dev);
 	ret = imx7ulp_wdt_init(imx7ulp_wdt, wdog->timeout * imx7ulp_wdt->hw->wdog_clock_rate);
Signature · 4 lines
2.43.0

base-commit: 1af5c1d3a90246a15225fc7de0ed7e5f9b2f3f98
branch: master-imc7ulp_wdt-nowayout
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · Oleksandr Suvorov

The module parameter nowayout indicates whether the watchdog should ever be allowed to stop, but the driver currently ignores this option.

Pass the nowayout parameter to the watchdog core by setting the WDOG_NO_WAY_OUT flag accordingly.

Quoted 18 lines

---

  drivers/watchdog/imx7ulp_wdt.c | 1 +
  1 file changed, 1 insertion(+)
drivers/watchdog/imx7ulp_wdt.c +1 -0
index 0f13a30533574..03479110453ce 100644
@@ -346,6 +346,7 @@ static int imx7ulp_wdt_probe(struct platform_device *pdev)
  	watchdog_stop_on_reboot(wdog);
  	watchdog_stop_on_unregister(wdog);
  	watchdog_set_drvdata(wdog, imx7ulp_wdt);
+	watchdog_set_nowayout(wdog, nowayout);
 
  	imx7ulp_wdt->hw = of_device_get_match_data(dev);
  	ret = imx7ulp_wdt_init(imx7ulp_wdt, wdog->timeout * imx7ulp_wdt->hw->wdog_clock_rate);
maintainer Reviewed-by on v1 1/1
#2 lore raw
In reply to Oleksandr Suvorov
Quoted 9 lines · Oleksandr Suvorov

The module parameter nowayout indicates whether the watchdog should ever be allowed to stop, but the driver currently ignores this option.

Pass the nowayout parameter to the watchdog core by setting the WDOG_NO_WAY_OUT flag accordingly.

---

Quoted 21 lines
 drivers/watchdog/imx7ulp_wdt.c | 1 +
 1 file changed, 1 insertion(+)
drivers/watchdog/imx7ulp_wdt.c +1 -1
index 0f13a30533574..03479110453ce 100644
@@ -346,6 +346,7 @@ static int imx7ulp_wdt_probe(struct platform_device *pdev)
 	watchdog_stop_on_reboot(wdog);
 	watchdog_stop_on_unregister(wdog);
 	watchdog_set_drvdata(wdog, imx7ulp_wdt);
+	watchdog_set_nowayout(wdog, nowayout);
 
 	imx7ulp_wdt->hw = of_device_get_match_data(dev);
 	ret = imx7ulp_wdt_init(imx7ulp_wdt, wdog->timeout * imx7ulp_wdt->hw->wdog_clock_rate);
--

2.43.0

base-commit: 1af5c1d3a90246a15225fc7de0ed7e5f9b2f3f98
branch: master-imc7ulp_wdt-nowayout