Skip to content
/ linux Public

Commit 975006d

Browse files
MrCry0Sasha Levin
authored andcommitted
watchdog: imx7ulp_wdt: handle the nowayout option
[ Upstream commit d303d37 ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent ab845ee commit 975006d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/watchdog/imx7ulp_wdt.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,7 @@ static int imx7ulp_wdt_probe(struct platform_device *pdev)
356356
watchdog_stop_on_reboot(wdog);
357357
watchdog_stop_on_unregister(wdog);
358358
watchdog_set_drvdata(wdog, imx7ulp_wdt);
359+
watchdog_set_nowayout(wdog, nowayout);
359360

360361
imx7ulp_wdt->hw = of_device_get_match_data(dev);
361362
ret = imx7ulp_wdt_init(imx7ulp_wdt, wdog->timeout * imx7ulp_wdt->hw->wdog_clock_rate);

0 commit comments

Comments
 (0)