watchdog: sp805: set WDOG_HW_RUNNING when appropriate
authorRay Jui <ray.jui@broadcom.com>
Mon, 28 May 2018 18:01:35 +0000 (11:01 -0700)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Thu, 2 Aug 2018 13:57:11 +0000 (15:57 +0200)
commitfa5072ed8f530df5a04511721d19b61a6cf8c96c
treed7a1dd98aea48ac19aae6e4b18fc3142201e4d03
parentb800885888406f33edfec0eb1cb752292f23de83
watchdog: sp805: set WDOG_HW_RUNNING when appropriate

If the watchdog hardware is already enabled during the boot process,
when the Linux watchdog driver loads, it should reset the watchdog and
tell the watchdog framework. As a result, ping can be generated from
the watchdog framework, until the userspace watchdog daemon takes over
control

Signed-off-by: Ray Jui <ray.jui@broadcom.com>
Reviewed-by: Vladimir Olovyannikov <vladimir.olovyannikov@broadcom.com>
Reviewed-by: Scott Branden <scott.branden@broadcom.com>
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/sp805_wdt.c