]> git.baikalelectronics.ru Git - kernel.git/commit
watchdog: gpio_wdt: Add "always_running" feature to GPIO watchdog
authorMike Looijmans <mike.looijmans@topic.nl>
Wed, 14 Jan 2015 06:28:29 +0000 (07:28 +0100)
committerWim Van Sebroeck <wim@iguana.be>
Tue, 17 Feb 2015 20:33:22 +0000 (21:33 +0100)
commit2acec77b3c11027182608214f9b8c53566f076c8
tree39ddf8b02b9004c5f9124c5ebd2eae23e149344c
parent1e6bf651ec3bda62a58abd9d6f48bb61028e31db
watchdog: gpio_wdt: Add "always_running" feature to GPIO watchdog

On some chips, like the TPS386000, the trigger cannot be disabled
and the CPU must keep toggling the line at all times. Add a switch
"always_running" to keep toggling the GPIO line regardless of the
state of the soft part of the watchdog. The "armed" member keeps
track of whether a timeout must also cause a reset.

Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Documentation/devicetree/bindings/watchdog/gpio-wdt.txt
drivers/watchdog/gpio_wdt.c