]> git.baikalelectronics.ru Git - kernel.git/commit
watchdog: dw_wdt: ping watchdog to reset countdown before start
authorJack Mitchell <ml@embed.me.uk>
Tue, 7 Jan 2020 15:51:55 +0000 (15:51 +0000)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Mon, 27 Jan 2020 14:55:46 +0000 (15:55 +0100)
commit26015d0e448fe8b7399f3da5cbbd706941852612
treef2ad51834ce31d7a6185054ad98660ce69d8b24a
parentbc76c82f95445e6e2c3b86b5e0ae63f6ef9b0509
watchdog: dw_wdt: ping watchdog to reset countdown before start

Currently on an rk3288 SoC when trying to use the watchdog the SoC will
instantly reset. This is due to the watchdog countdown counter being set
to its initial value of 0x0. Reset the watchdog counter before start in
order to correctly start the countdown timer from the right position.

Signed-off-by: Jack Mitchell <ml@embed.me.uk>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20200107155155.278521-1-ml@embed.me.uk
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/dw_wdt.c