diff options
author | Stefan Riedmueller <s.riedmueller@phytec.de> | 2020-04-03 15:07:26 +0200 |
---|---|---|
committer | Wim Van Sebroeck <wim@linux-watchdog.org> | 2020-05-25 08:55:43 +0200 |
commit | e8799ce85992defa341613c5c6f083fa412266f3 (patch) | |
tree | b5990e9fb4b638e6a13b75cdd41ac79e19e000d1 /drivers/watchdog/lpc18xx_wdt.c | |
parent | watchdog: clarify that stop() is optional (diff) | |
download | linux-e8799ce85992defa341613c5c6f083fa412266f3.tar.xz linux-e8799ce85992defa341613c5c6f083fa412266f3.zip |
watchdog: da9062: Initialize timeout during probe
During probe try to set the timeout from device tree and fall back to
either the pre-configured timeout set by e.g. the bootloader in case the
watchdog is already running or the default value.
If the watchdog is already running make sure to update the timeout and
tell the framework about the running state to make sure the watchdog is
handled correctly until user space takes over. Updating the timeout also
removes the need for an additional manual ping so we can remove that as
well.
Signed-off-by: Stefan Riedmueller <s.riedmueller@phytec.de>
Reviewed-by: Adam Thomson <Adam.Thomson.Opensource@diasemi.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20200403130728.39260-1-s.riedmueller@phytec.de
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
Diffstat (limited to 'drivers/watchdog/lpc18xx_wdt.c')
0 files changed, 0 insertions, 0 deletions