]> git.baikalelectronics.ru Git - kernel.git/commit
watchdog: sp805: ping fails to abort wdt reset
authorSandeep Tripathy <tripathy@broadcom.com>
Tue, 19 Jan 2016 09:14:49 +0000 (14:44 +0530)
committerWim Van Sebroeck <wim@iguana.be>
Sun, 31 Jan 2016 15:52:08 +0000 (16:52 +0100)
commit211eb033e78ed2af11af8e34d5a5cdd5ab9a24fd
tree8f9859ae3d02b35cd3f27b8e99bcb7252f1a6cb0
parent6f3095d277766b3dc6ef2b3cd7cac0deca8d22ea
watchdog: sp805: ping fails to abort wdt reset

sp805 wdt asserts interrupt for the first expiry and
reloads the counter. If wdt interrupt is set and count
reaches zero then wdt reset event is generated. To get
wdt reset at 't' timeout the driver loads wdt counter
with 't/2'. A ping before time 't'  *should* prevent
wdt reset. Currently if ping is done after 't/2' then
wdt interrupt condition gets set. On the next countdown
of loadval wdt reset event occurs eventhough wdt was
reloaded before the set timeout 't'.

This patch clears the interrupt condition on ping.

Signed-off-by: Sandeep Tripathy <tripathy@broadcom.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/sp805_wdt.c