]> www.infradead.org Git - users/dwmw2/linux.git/commit
watchdog: renesas_wdt: don't set divider while watchdog is running
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Wed, 7 Nov 2018 19:46:02 +0000 (20:46 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Feb 2019 19:02:17 +0000 (20:02 +0100)
commitff5a441411a62e2b1b1063c7e37775cec809c2bd
treefd24d8afc4465ae107da1106d858d7d3adf4a755
parenta0cb037f272b1160617dbdc16cb2510859d8aac8
watchdog: renesas_wdt: don't set divider while watchdog is running

[ Upstream commit e990e12741877e9bfac402ca468f4007a75f6e2a ]

The datasheet says we must stop the timer before changing the clock
divider. This can happen when the restart handler is called while the
watchdog is running.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/watchdog/renesas_wdt.c