summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/Makefile
diff options
context:
space:
mode:
authorMarco Felsch <m.felsch@pengutronix.de>2018-05-28 08:45:45 +0200
committerWim Van Sebroeck <wim@linux-watchdog.org>2018-06-06 10:45:32 +0200
commit44ee54aabfdb3b35866ed909bde3ab01e9679385 (patch)
treecac7808dcca769272769e546da76bdaed678c6b9 /drivers/mtd/Makefile
parente46bb55dbc94b06f5ee466e2f50723b56781e661 (diff)
downloadlinux-44ee54aabfdb3b35866ed909bde3ab01e9679385.tar.bz2
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 'drivers/mtd/Makefile')
0 files changed, 0 insertions, 0 deletions