Skip to content

Commit e871e93

Browse files
a3fWim Van Sebroeck
authored andcommitted
watchdog: f71808e_wdt: indicate WDIOF_CARDRESET support in watchdog_info.options
The driver supports populating bootstatus with WDIOF_CARDRESET, but so far userspace couldn't portably determine whether absence of this flag meant no watchdog reset or no driver support. Or-in the bit to fix this. Fixes: b97cb21 ("watchdog: f71808e_wdt: Fix WDTMOUT_STS register read") Cc: [email protected] Signed-off-by: Ahmad Fatoum <[email protected]> Reviewed-by: Guenter Roeck <[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 d51d385 commit e871e93

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/watchdog/f71808e_wdt.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,8 @@ static int __init watchdog_init(int sioaddr)
692692
watchdog.sioaddr = sioaddr;
693693
watchdog.ident.options = WDIOC_SETTIMEOUT
694694
| WDIOF_MAGICCLOSE
695-
| WDIOF_KEEPALIVEPING;
695+
| WDIOF_KEEPALIVEPING
696+
| WDIOF_CARDRESET;
696697

697698
snprintf(watchdog.ident.identity,
698699
sizeof(watchdog.ident.identity), "%s watchdog",

0 commit comments

Comments
 (0)