Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2421cfd5 authored by Maxim Kochetkov's avatar Maxim Kochetkov Committed by Wim Van Sebroeck
Browse files

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: default avatarMaxim Kochetkov <fido_max@inbox.ru>
Reviewed-by: default avatarGuenter Roeck <linux@roeck-us.net>
[groeck: Updated subject and description]
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarWim Van Sebroeck <wim@linux-watchdog.org>
parent c2cf466c
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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);