watchdog: Fix omap watchdogs to enable the magic close bit
authorTony Lindgren <tony@atomide.com>
Tue, 14 Oct 2014 19:25:19 +0000 (12:25 -0700)
committerWim Van Sebroeck <wim@iguana.be>
Tue, 17 Feb 2015 20:32:36 +0000 (21:32 +0100)
This allows testing the watchdog easily with distros just by
doing pkill -9 watchdog.

Reported-by: Thomas Dziedzic <gostrc@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Acked-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Reviewed-by: Felipe Balbi <balbi@ti.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/omap_wdt.c
drivers/watchdog/retu_wdt.c
drivers/watchdog/twl4030_wdt.c

index 9f2709db61ca921ac1a97ff055735fcf7612349f..1e6be9e405779884c315de023a8aad18e5c07419 100644 (file)
@@ -189,7 +189,7 @@ static int omap_wdt_set_timeout(struct watchdog_device *wdog,
 }
 
 static const struct watchdog_info omap_wdt_info = {
-       .options = WDIOF_SETTIMEOUT | WDIOF_KEEPALIVEPING,
+       .options = WDIOF_SETTIMEOUT | WDIOF_MAGICCLOSE | WDIOF_KEEPALIVEPING,
        .identity = "OMAP Watchdog",
 };
 
index a7a0695971e468e19142645b7bdca8be38671bb4..b7c68e275aeb357503b3e10e48b2102444348b92 100644 (file)
@@ -94,7 +94,7 @@ static int retu_wdt_set_timeout(struct watchdog_device *wdog,
 }
 
 static const struct watchdog_info retu_wdt_info = {
-       .options = WDIOF_SETTIMEOUT | WDIOF_KEEPALIVEPING,
+       .options = WDIOF_SETTIMEOUT | WDIOF_MAGICCLOSE | WDIOF_KEEPALIVEPING,
        .identity = "Retu watchdog",
 };
 
index 12c15903d0989d4b3bc14dfcd83943e8d549e703..2c1db6fa9a2724ae906f8682dd29ea176a752daf 100644 (file)
@@ -57,7 +57,7 @@ static int twl4030_wdt_set_timeout(struct watchdog_device *wdt,
 }
 
 static const struct watchdog_info twl4030_wdt_info = {
-       .options = WDIOF_SETTIMEOUT | WDIOF_KEEPALIVEPING,
+       .options = WDIOF_SETTIMEOUT | WDIOF_MAGICCLOSE | WDIOF_KEEPALIVEPING,
        .identity = "TWL4030 Watchdog",
 };