Skip to content

Commit ff0aaac

Browse files
andy-shevWim Van Sebroeck
authored andcommitted
watchdog: intel-mid_wdt: Add WATCHDOG_NOWAYOUT support
Normally, the watchdog is disabled when /dev/watchdog is closed, but if CONFIG_WATCHDOG_NOWAYOUT is defined, then it means that the watchdog should remain enabled. So we should keep it enabled if CONFIG_WATCHDOG_NOWAYOUT is defined. Reported-by: Razvan Becheriu <[email protected]> Cc: Ferry Toth <[email protected]> Signed-off-by: Andy Shevchenko <[email protected]> Reviewed-by: Guenter Roeck <[email protected]> Tested-by: Razvan Becheriu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Guenter Roeck <[email protected]> Signed-off-by: Wim Van Sebroeck <[email protected]>
1 parent 8686532 commit ff0aaac

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/watchdog/intel-mid_wdt.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ static int mid_wdt_probe(struct platform_device *pdev)
134134
wdt_dev->timeout = MID_WDT_DEFAULT_TIMEOUT;
135135
wdt_dev->parent = dev;
136136

137+
watchdog_set_nowayout(wdt_dev, WATCHDOG_NOWAYOUT);
137138
watchdog_set_drvdata(wdt_dev, dev);
138139

139140
ret = devm_request_irq(dev, pdata->irq, mid_wdt_irq,

0 commit comments

Comments
 (0)