Linux ACPI
 help / color / mirror / Atom feed
* [PATCH] watchdog: wdat_wdt: Ping the watchdog on resume
@ 2016-10-20 15:03 Mika Westerberg
  2016-10-20 15:05 ` Rafael J. Wysocki
  2016-10-20 22:19 ` Guenter Roeck
  0 siblings, 2 replies; 7+ messages in thread
From: Mika Westerberg @ 2016-10-20 15:03 UTC (permalink / raw)
  To: linux-watchdog-u79uwXL29TY76Z2rM5mHXA
  Cc: Wim Van Sebroeck, Guenter Roeck, Rafael J. Wysocki,
	Mika Westerberg, linux-acpi-u79uwXL29TY76Z2rM5mHXA

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.

Signed-off-by: Mika Westerberg <mika.westerberg-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
---
 drivers/watchdog/wdat_wdt.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/watchdog/wdat_wdt.c b/drivers/watchdog/wdat_wdt.c
index e473e3b23720..6d1fbda0f461 100644
--- a/drivers/watchdog/wdat_wdt.c
+++ b/drivers/watchdog/wdat_wdt.c
@@ -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);
-- 
2.9.3

--
To unsubscribe from this list: send the line "unsubscribe linux-watchdog" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-10-21 12:58 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-20 15:03 [PATCH] watchdog: wdat_wdt: Ping the watchdog on resume Mika Westerberg
2016-10-20 15:05 ` Rafael J. Wysocki
     [not found]   ` <CAJZ5v0ipdO2psmdesoQuw_5uuOSqDh22DK04bEJTi1pW0fL53g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-10-20 15:17     ` Mika Westerberg
2016-10-20 15:48       ` Rafael J. Wysocki
2016-10-21 12:52         ` Mika Westerberg
2016-10-20 22:19 ` Guenter Roeck
2016-10-20 22:47   ` Rafael J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox