summaryrefslogtreecommitdiffstats
path: root/drivers/watchdog
diff options
context:
space:
mode:
authorMaxim Kochetkov <fido_max@inbox.ru>2018-06-07 15:54:37 +0200
committerWim Van Sebroeck <wim@linux-watchdog.org>2018-08-02 15:57:09 +0200
commit2421cfd55a80af3272c261a28864cc5c3c67155c (patch)
tree488092f7fb1e5dd9e126379e0a35d46d91cd656c /drivers/watchdog
parentwatchdog: stm32: add pclk feature for stm32mp1 (diff)
downloadlinux-2421cfd55a80af3272c261a28864cc5c3c67155c.tar.xz
linux-2421cfd55a80af3272c261a28864cc5c3c67155c.zip
watchdog: orion_wdt: Mark watchdog as active when running at probe
If the watchdog is fully enabled and running at probe, mark it as such so the watchdog core can handle it until the watchdog device is opened. Signed-off-by: Maxim Kochetkov <fido_max@inbox.ru> Reviewed-by: Guenter Roeck <linux@roeck-us.net> [groeck: Updated subject and description] Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
Diffstat (limited to 'drivers/watchdog')
-rw-r--r--drivers/watchdog/orion_wdt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/watchdog/orion_wdt.c b/drivers/watchdog/orion_wdt.c
index ea676d233e1e..9db3b09f7568 100644
--- a/drivers/watchdog/orion_wdt.c
+++ b/drivers/watchdog/orion_wdt.c
@@ -581,6 +581,8 @@ static int orion_wdt_probe(struct platform_device *pdev)
*/
if (!orion_wdt_enabled(&dev->wdt))
orion_wdt_stop(&dev->wdt);
+ else
+ set_bit(WDOG_HW_RUNNING, &dev->wdt.status);
/* Request the IRQ only after the watchdog is disabled */
irq = platform_get_irq(pdev, 0);