]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
watchdog: imx7ulp_wdt: handle the nowayout option
authorOleksandr Suvorov <cryosay@gmail.com>
Sun, 23 Nov 2025 20:24:33 +0000 (22:24 +0200)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Sun, 18 Jan 2026 09:55:09 +0000 (10:55 +0100)
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.

Signed-off-by: Oleksandr Suvorov <cryosay@gmail.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/imx7ulp_wdt.c

index 0f13a30533574a71abc7c0644553e14ff1716e30..03479110453ce78a6a89ce8d351ba9ece2f5e2c5 100644 (file)
@@ -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);