Skip to contentSkip to conversation

watchdog: orion_wdt: add wdt status init for handle_boot_enabled

PATCH In review Maxim Kochetkov 2 participants 6 messages May 30, 2018 – Jun 5, 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 Reviewed-by on v1 1/1
#1 lore raw
Quoted 3 lines · Maxim Kochetkov

This patch add init of wdt.status for CONFIG_WATCHDOG_HANDLE_BOOT_ENABLED

Quoted 16 lines

---

drivers/watchdog/orion_wdt.c renamed from drivers/watchdog/orion_wdt.c.orig +2 -1
@@ -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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

maintainer
#2 lore raw
In reply to Maxim Kochetkov
Quoted 4 lines · Maxim Kochetkov

This patch add init of wdt.status for CONFIG_WATCHDOG_HANDLE_BOOT_ENABLED

I can not get this patch to apply. Can you rebase to mainline and resend, or at least let us know what you used as base version ?

Thanks,
Guenter

Quoted 17 lines

---
--
To unsubscribe from this list: send the line "unsubscribe linux-watchdog" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

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);
#3 lore raw
drivers/watchdog/orion_wdt.c 2018-06-04 08:00:13.156000000 +0300 renamed from drivers/watchdog/orion_wdt.c.orig 2018-06-04 07:54:05.176000000 +0300 +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);
Quoted 29 lines · Guenter Roeck
Quoted 4 lines · Maxim Kochetkov

This patch add init of wdt.status for CONFIG_WATCHDOG_HANDLE_BOOT_ENABLED

I can not get this patch to apply. Can you rebase to mainline and resend, or at least let us know what you used as base version ?

Thanks,
Guenter

Quoted 17 lines

---
--
To unsubscribe from this list: send the line "unsubscribe linux-watchdog" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

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
#4 lore raw

drivers/watchdog/orion_wdt.c    2018-06-04 08:00:13.156000000 +0300 static int orion_wdt_probe(struct platfo · line 588

Quoted 12 lines · Maxim Kochetkov
drivers/watchdog/orion_wdt.c    2018-06-04 08:00:13.156000000 +0300 renamed from drivers/watchdog/orion_wdt.c.orig    2018-06-04 07:54:05.176000000 +0300 +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);

We would need a complete patch to be able to apply it.

Guenter

Quoted 31 lines
Quoted 29 lines · Guenter Roeck
Quoted 4 lines · Maxim Kochetkov

This patch add init of wdt.status for CONFIG_WATCHDOG_HANDLE_BOOT_ENABLED

I can not get this patch to apply. Can you rebase to mainline and resend, or at least let us know what you used as base version ?

Thanks,
Guenter

Quoted 17 lines

---

Signature · 3 lines
To unsubscribe from this list: send the line "unsubscribe linux-watchdog" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
drivers/watchdog/orion_wdt.c    2018-05-29 15:00:29.560000000 +0300 renamed from drivers/watchdog/orion_wdt.c.orig    2018-04-19 09:54:12.000000000 +0300 +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);
#5 lore raw

This patch add init of wdt.status for CONFIG_WATCHDOG_HANDLE_BOOT_ENABLED

---

drivers/watchdog/orion_wdt.c 2018-06-04 08:00:13.156000000 +0300 renamed from drivers/watchdog/orion_wdt.c.orig 2018-06-04 07:54:05.176000000 +0300 +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);
Quoted 55 lines · Guenter Roeck
Quoted 6 lines · Maxim Kochetkov

--- 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

Review static int orion_wdt_probe(struct platfo · line 588

Quoted 8 lines
(quoted diff) +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);

We would need a complete patch to be able to apply it.

Guenter

Quoted 33 lines
Quoted 31 lines · Guenter Roeck
Quoted 4 lines · Maxim Kochetkov

This patch add init of wdt.status for CONFIG_WATCHDOG_HANDLE_BOOT_ENABLED

I can not get this patch to apply. Can you rebase to mainline and resend, or at least let us know what you used as base version ?

Thanks,
Guenter

Quoted 19 lines

---

Signature · 8 lines
To unsubscribe from this list: send the line "unsubscribe linux-watchdog" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

--- a/drivers/watchdog/orion_wdt.c.orig    2018-04-19 
09:54:12.000000000 +0300
+++ b/drivers/watchdog/orion_wdt.c    2018-05-29 15:00:29.560000000 
+0300
(quoted diff) +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);