watchdog: da9063: Fix timeout handling during probe
authorMarco Felsch <m.felsch@pengutronix.de>
Mon, 28 May 2018 06:45:46 +0000 (08:45 +0200)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Wed, 6 Jun 2018 08:45:32 +0000 (10:45 +0200)
commitbe9e9c2ad52baea131a5395b15f52ae4f86bfbe3
tree1f7fa3197550589914fd62e133c0a1af16dbfac6
parent44ee54aabfdb3b35866ed909bde3ab01e9679385
watchdog: da9063: Fix timeout handling during probe

The watchdog can be enabled in previous steps (e.g. the bootloader). Set
the driver default timeout value (8s) if the watchdog is already running
and the HW_RUNNING flag. So the watchdog core framework will ping the
watchdog till the user space activates the watchdog explicit with the
desired timeout value.

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>
drivers/watchdog/da9063_wdt.c