summaryrefslogtreecommitdiff
path: root/drivers/watchdog/sbc8360.c
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2016-07-22 00:21:56 +0300
committerWim Van Sebroeck <wim@iguana.be>2016-07-25 13:03:04 +0300
commit3c10bbde10fe4dca52726e246cefa6b0a1dfbd3e (patch)
tree9067dc747a93cb7cbf70b94270578e2fbfff62a2 /drivers/watchdog/sbc8360.c
parent138913cb632be12344982e54ccd12f6f15971bf7 (diff)
downloadlinux-3c10bbde10fe4dca52726e246cefa6b0a1dfbd3e.tar.xz
watchdog: core: Clear WDOG_HW_RUNNING before calling the stop function
WDOG_HW_RUNNING indicates that the hardware watchdog is running while the watchdog device is closed. The flag may be set by the driver when it is instantiated to indicate that the watchdog is running, and that the watchdog core needs to send heartbeat requests to the driver until the watchdog device is opened. When the watchdog device is closed, the flag can be used by the driver's stop function to indicate to the watchdog core that it was unable to stop the watchdog, and that the watchdog core needs to send heartbeat requests. This only works if the flag is actually cleared when the watchdog is stopped. To avoid having to clear the flag in each driver's stop function, clear it in the watchdog core before calling the stop function. Reported-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk> Fixes: ee142889e32f ("watchdog: Introduce WDOG_HW_RUNNING flag") Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'drivers/watchdog/sbc8360.c')
0 files changed, 0 insertions, 0 deletions