This patch add init of wdt.status for CONFIG_WATCHDOG_HANDLE_BOOT_ENABLED
Signed-off-by: Maxim Kochetkov <fido_max@xxxxxxxx>
---
--- linux-4.17/drivers/watchdog/orion_wdt.c.orig 2018-06-04
07:54:05.176000000 +0300
+++ linux-4.17/drivers/watchdog/orion_wdt.c 2018-06-04
08:00:13.156000000 +0300
@@ -581,6 +581,8 @@ static int orion_wdt_probe(struct platfo
*/
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);
--
To unsubscribe from this list: send the line "unsubscribe linux-watchdog" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html