watchdog: tangox: Set max_hw_heartbeat_ms instead of max_timeout
authorGuenter Roeck <linux@roeck-us.net>
Sun, 17 Jul 2016 20:47:47 +0000 (13:47 -0700)
committerWim Van Sebroeck <wim@iguana.be>
Mon, 18 Jul 2016 10:10:21 +0000 (12:10 +0200)
commitc7ef68c32265a396a4d977f896a11a4cebb0ace4
tree08d0c66fd16576179bca2a838a1e7e7d9e48918f
parent3fbfe9264756d3fd99a9210345016c94ec4ada73
watchdog: tangox: Set max_hw_heartbeat_ms instead of max_timeout

Setting max_hw_heartbeat_ms lets the watchdog core provide a virtual
timeout if the timeout requested by user space is larger than the maximum
hardware timeout. Also, it helps the watchdog core to provide heartbeats
if the hardware watchdog is running while closed.

Fixes: a3e376d26ace ("watchdog: tangox: Mark running watchdog correctly")
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/tangox_wdt.c