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: da9052_wdt: add support for nowayout

Add nowayout module parameter for not stopping the
watchdog when userspace application quits.

Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20250326-da9052-fixes-v3-1-a38a560fef0e@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>

authored by

Marcus Folkesson and committed by
Wim Van Sebroeck
776d14d2 4856ebd9

+7
+7
drivers/watchdog/da9052_wdt.c
··· 30 30 unsigned long jpast; 31 31 }; 32 32 33 + static bool nowayout = WATCHDOG_NOWAYOUT; 34 + module_param(nowayout, bool, 0); 35 + MODULE_PARM_DESC(nowayout, 36 + "Watchdog cannot be stopped once started (default=" 37 + __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); 38 + 33 39 static const struct { 34 40 u8 reg_val; 35 41 int time; /* Seconds */ ··· 178 172 da9052_wdt->ops = &da9052_wdt_ops; 179 173 da9052_wdt->parent = dev; 180 174 watchdog_set_drvdata(da9052_wdt, driver_data); 175 + watchdog_set_nowayout(da9052_wdt, nowayout); 181 176 182 177 if (da9052->fault_log & DA9052_FAULTLOG_TWDERROR) 183 178 da9052_wdt->bootstatus |= WDIOF_CARDRESET;