]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
watchdog: intel-mid: add Magic Closure flag
authorDavid Cohen <david.a.cohen@linux.intel.com>
Mon, 5 Oct 2015 23:49:58 +0000 (16:49 -0700)
committerWim Van Sebroeck <wim@iguana.be>
Wed, 28 Oct 2015 21:58:32 +0000 (22:58 +0100)
Adding WDIOF_MAGICCLOSE to Intel MID watchdog driver. Once the watchdog
is opened, it makes sense to disable watchdog only if it was gracefully
released.

Signed-off-by: David Cohen <david.a.cohen@linux.intel.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/intel-mid_wdt.c

index 0a436b5d1e8444efed12ad7ce3f5b3eb5d4f0930..db36d12e2b52301da6300514d99e380db669da5d 100644 (file)
@@ -101,7 +101,7 @@ static irqreturn_t mid_wdt_irq(int irq, void *dev_id)
 
 static const struct watchdog_info mid_wdt_info = {
        .identity = "Intel MID SCU watchdog",
-       .options = WDIOF_KEEPALIVEPING | WDIOF_SETTIMEOUT,
+       .options = WDIOF_KEEPALIVEPING | WDIOF_SETTIMEOUT | WDIOF_MAGICCLOSE,
 };
 
 static const struct watchdog_ops mid_wdt_ops = {