summaryrefslogtreecommitdiffstats
path: root/drivers/watchdog/Makefile
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2015-07-31 09:21:36 +0200
committerWim Van Sebroeck <wim@iguana.be>2015-09-09 21:35:37 +0200
commit4f2d0b2d1b31cbe704c8f94e74e46cb64187ab0c (patch)
tree30a9e56910f1f654f0ef240ca0d771c7067e9203 /drivers/watchdog/Makefile
parentwatchdog: gpio-wdt: be more strict about hw_algo matching (diff)
downloadlinux-4f2d0b2d1b31cbe704c8f94e74e46cb64187ab0c.tar.xz
linux-4f2d0b2d1b31cbe704c8f94e74e46cb64187ab0c.zip
watchdog: gpio-wdt: ping already at startup for always running devices
During probe for an always-running watchdog a timer is setup to constantly ping the watchdog while the device is not open. The gpio to ping the watchdog is setup to inactive. For a watchdog with hw_algo = "toggle" this results in a ping depending on the initial state of the gpio, for hw_algo = "level" no ping is generated. Make sure that the first automatic ping is sent immediately and not only when the timer expires the first time. This makes the machine survive in case more than half of the watchdog timeout is already elapsed. (Which is very probable for the chip I'm faced with that has a timeout of one second.) Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'drivers/watchdog/Makefile')
0 files changed, 0 insertions, 0 deletions