Skip to content

Commit

Permalink
watchdog: Fix omap watchdogs to enable the magic close bit
Browse files Browse the repository at this point in the history
This allows testing the watchdog easily with distros just by
doing pkill -9 watchdog.

Reported-by: Thomas Dziedzic <[email protected]>
Signed-off-by: Tony Lindgren <[email protected]>
Acked-by: Aaro Koskinen <[email protected]>
Reviewed-by: Felipe Balbi <[email protected]>
Reviewed-by: Guenter Roeck <[email protected]>
Signed-off-by: Wim Van Sebroeck <[email protected]>
tmlind authored and Wim Van Sebroeck committed Feb 17, 2015
1 parent a6f8f81 commit fb1cbea
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion drivers/watchdog/omap_wdt.c
Original file line number Diff line number Diff line change
@@ -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",
};

2 changes: 1 addition & 1 deletion drivers/watchdog/retu_wdt.c
Original file line number Diff line number Diff line change
@@ -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",
};

2 changes: 1 addition & 1 deletion drivers/watchdog/twl4030_wdt.c
Original file line number Diff line number Diff line change
@@ -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",
};

0 comments on commit fb1cbea

Please sign in to comment.