Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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.

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>

authored by

Oleksandr Suvorov and committed by
Wim Van Sebroeck
d303d37e a1a548c5

+1
+1
drivers/watchdog/imx7ulp_wdt.c
··· 346 346 watchdog_stop_on_reboot(wdog); 347 347 watchdog_stop_on_unregister(wdog); 348 348 watchdog_set_drvdata(wdog, imx7ulp_wdt); 349 + watchdog_set_nowayout(wdog, nowayout); 349 350 350 351 imx7ulp_wdt->hw = of_device_get_match_data(dev); 351 352 ret = imx7ulp_wdt_init(imx7ulp_wdt, wdog->timeout * imx7ulp_wdt->hw->wdog_clock_rate);