Skip to contentSkip to conversation

watchdog: wdat_wdt: Ping the watchdog on resume

PATCH In review Mika Westerberg 4 participants 7 messages Oct 20, 2016 – Oct 21, 2016 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 watchdog: wdat_wdt: Ping the watchdog on resume

It turns out we need to ping the watchdog hardware on resume when we re-program it. Otherwise this results inadvertent reset to trigger right after the resume is completed.

---
 drivers/watchdog/wdat_wdt.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/watchdog/wdat_wdt.c +4 -0
index e473e3b23720..6d1fbda0f461 100644
@@ -499,6 +499,10 @@ static int wdat_wdt_resume_noirq(struct device *dev)
 		ret = wdat_wdt_enable_reboot(wdat);
 		if (ret)
 			return ret;
+
+		ret = wdat_wdt_ping(&wdat->wdd);
+		if (ret)
+			return ret;
 	}
 
 	return wdat_wdt_start(&wdat->wdd);
Signature · 6 lines
2.9.3

--
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
#1 lore raw
Quoted 5 lines · Mika Westerberg

It turns out we need to ping the watchdog hardware on resume when we re-program it. Otherwise this results inadvertent reset to trigger right after the resume is completed.

Is there a Fixes: tag missing here?

Quoted 10 lines
---
 drivers/watchdog/wdat_wdt.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/watchdog/wdat_wdt.c +0 -0
index e473e3b23720..6d1fbda0f461 100644
@@ -499,6 +499,10 @@ static int wdat_wdt_resume_noirq(struct device *dev)
                ret = wdat_wdt_enable_reboot(wdat);

drivers/watchdog/wdat_wdt.c static int wdat_wdt_resume_noirq(struct device *dev)

Quoted 10 lines
drivers/watchdog/wdat_wdt.c +4 -1
                if (ret)
                        return ret;
+
+               ret = wdat_wdt_ping(&wdat->wdd);
+               if (ret)
+                       return ret;
        }
 
        return wdat_wdt_start(&wdat->wdd);
--

Thanks,
Rafael

A message that is not in the archive (sent off-list or not yet received): CAJZ5v0ipdO2psmdesoQuw_5uuOSqDh22DK04bEJTi1pW0fL53g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org

#3 lore raw
Quoted 9 lines · Rafael J. Wysocki
Quoted 5 lines · Mika Westerberg

It turns out we need to ping the watchdog hardware on resume when we re-program it. Otherwise this results inadvertent reset to trigger right after the resume is completed.

Is there a Fixes: tag missing here?

Oops, right. Sorry about that.

It should be:

Fixes 058dfc767008 ("ACPI / watchdog: Add support for WDAT hardware watchdog")

(I can resend the patch as well, if needed with the Fixes tag).

Quoted 18 lines
Quoted 18 lines
---
 drivers/watchdog/wdat_wdt.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/watchdog/wdat_wdt.c +4 -0
index e473e3b23720..6d1fbda0f461 100644
@@ -499,6 +499,10 @@ static int wdat_wdt_resume_noirq(struct device *dev)
                ret = wdat_wdt_enable_reboot(wdat);
                if (ret)
                        return ret;
+
+               ret = wdat_wdt_ping(&wdat->wdd);
+               if (ret)
+                       return ret;
        }
 
Quoted 5 lines

drivers/watchdog/wdat_wdt.c static int wdat_wdt_resume_noirq(struct device *dev)

Quoted 2 lines
drivers/watchdog/wdat_wdt.c +0 -1
        return wdat_wdt_start(&wdat->wdd);
--

Thanks,
Rafael

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

#4 lore raw
Quoted 11 lines · Mika Westerberg
Quoted 9 lines · Rafael J. Wysocki
Quoted 5 lines · Mika Westerberg

It turns out we need to ping the watchdog hardware on resume when we re-program it. Otherwise this results inadvertent reset to trigger right after the resume is completed.

Is there a Fixes: tag missing here?

Quoted 7 lines

Oops, right. Sorry about that.

It should be:

Fixes 058dfc767008 ("ACPI / watchdog: Add support for WDAT hardware watchdog")

(I can resend the patch as well, if needed with the Fixes tag).

No worries, I can pick this up from here.

Thanks,
Rafael

#5 lore raw
Quoted 15 lines · Rafael J. Wysocki
Quoted 13 lines · Mika Westerberg
Quoted 9 lines · Rafael J. Wysocki
Quoted 5 lines · Mika Westerberg

It turns out we need to ping the watchdog hardware on resume when we re-program it. Otherwise this results inadvertent reset to trigger right after the resume is completed.

Is there a Fixes: tag missing here?

Oops, right. Sorry about that.

Quoted 7 lines
Quoted 5 lines

It should be:

Fixes 058dfc767008 ("ACPI / watchdog: Add support for WDAT hardware watchdog")

(I can resend the patch as well, if needed with the Fixes tag).

No worries, I can pick this up from here.

Thanks :-)