Skip to contentSkip to conversation

watchdog: orion_wdt: add wdt status init for handle_boot_enabled

PATCH In review Кочетков Максим 2 participants 2 messages May 29, 2018 Watchdog device drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 watchdog: orion_wdt: add wdt status init for handle_boot_enabled

This patch add init of wdt.status for CONFIG_WATCHDOG_HANDLE_BOOT_ENABLED

---

drivers/watchdog/orion_wdt.c renamed from drivers/watchdog/orion_wdt.c.orig +2 -0
@@ -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);
maintainer
#1 lore raw
Quoted 7 lines · Кочетков Максим

This patch add init of wdt.status for CONFIG_WATCHDOG_HANDLE_BOOT_ENABLED

---

drivers/watchdog/orion_wdt.c static int orion_wdt_probe(struct platfo · line 588

Quoted 8 lines
drivers/watchdog/orion_wdt.c renamed from drivers/watchdog/orion_wdt.c.orig +2 -0
@@ -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);N?????r??y????b?X??ǧv?^?)޺{.n?+????{???\?? ?{ay?ʇڙ?,j??f???h???z??w??????j:+v???w?j?m????????zZ+?????ݢj"??!

Corrupted patch.

Guenter