aboutsummaryrefslogtreecommitdiff
path: root/.gitignore
diff options
context:
space:
mode:
authorGravatar Marco Felsch <m.felsch@pengutronix.de> 2018-05-28 08:45:45 +0200
committerGravatar Wim Van Sebroeck <wim@linux-watchdog.org> 2018-06-06 10:45:32 +0200
commit44ee54aabfdb3b35866ed909bde3ab01e9679385 (patch)
treecac7808dcca769272769e546da76bdaed678c6b9 /.gitignore
parentwatchdog: da9063: Fix setting/changing timeout (diff)
downloadlinux-44ee54aabfdb3b35866ed909bde3ab01e9679385.tar.gz
linux-44ee54aabfdb3b35866ed909bde3ab01e9679385.tar.bz2
linux-44ee54aabfdb3b35866ed909bde3ab01e9679385.zip
watchdog: da9063: Fix updating timeout value
The DA9063 watchdog has only one register field to store the timeout value and to enable the watchdog. The watchdog gets enabled if the value is not zero. There is no issue if the watchdog is already running but it leads into problems if the watchdog is disabled. If the watchdog is disabled and only the timeout value should be prepared the watchdog gets enabled too. Add a check to get the current watchdog state and update the watchdog timeout value on hw-side only if the watchdog is already active. Fixes: 5e9c16e37608 ("watchdog: Add DA9063 PMIC watchdog driver.") Signed-off-by: Marco Felsch <m.felsch@pengutronix.de> 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>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions