File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,12 @@ struct da9052_wdt_data {
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 */
@@ -172,6 +178,7 @@ static int da9052_wdt_probe(struct platform_device *pdev)
172
178
da9052_wdt -> ops = & da9052_wdt_ops ;
173
179
da9052_wdt -> parent = dev ;
174
180
watchdog_set_drvdata (da9052_wdt , driver_data );
181
+ watchdog_set_nowayout (da9052_wdt , nowayout );
175
182
176
183
if (da9052 -> fault_log & DA9052_FAULTLOG_TWDERROR )
177
184
da9052_wdt -> bootstatus |= WDIOF_CARDRESET ;
You can’t perform that action at this time.
0 commit comments