watchdog: menz069_wdt: fix timeout setting
authorJohannes Thumshirn <jth@kernel.org>
Tue, 18 Apr 2023 17:25:31 +0000 (19:25 +0200)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Sat, 22 Apr 2023 14:05:39 +0000 (16:05 +0200)
commitbd858e494ceb3aac25bab9c6639f4cd764f534ba
tree90c0a58461b47d5e95aad9c569cb669055218514
parent87b22656ca6a896d0378e9e60ffccb0c82f48b08
watchdog: menz069_wdt: fix timeout setting

When setting the timeout for the menz069_wdt watchdog driver, we
erroneously read from the 'watchdog value register' (WVR) instead of the
'watchdog timer register' (WTR) and then write the value back into WTR.

This can potentially lead to wrong timeouts and wrong enable bit settings.

Signed-off-by: Johannes Thumshirn <jth@kernel.org>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20230418172531.177349-3-jth@kernel.org
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/menz69_wdt.c