watchdog: wdat_wdt: Ping the watchdog on resume
Subsystems (2)
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
@@ -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
Rafael J. Wysocki
maintainerQuoted 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.
Signed-off-by Mika Westerberg <[email protected]>
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@@ -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
-1if (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
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:
(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@@ -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
-1return 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
Rafael J. Wysocki
maintainerQuoted 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.
Signed-off-by Mika Westerberg <[email protected]>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
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.
Signed-off-by Mika Westerberg <[email protected]>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 :-)
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.
Signed-off-by Mika Westerberg <[email protected]>
[ assuming Rafael is going to pick it up ]
Guenter
Rafael J. Wysocki
maintainerQuoted 10 lines · Guenter Roeck
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.
Signed-off-by Mika Westerberg <[email protected]>Acked-by Guenter Roeck <[email protected]>[ assuming Rafael is going to pick it up ]
I am, thanks!
Rafael