Commit 28e3d700 authored by Mika Westerberg's avatar Mika Westerberg Committed by Rafael J. Wysocki

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 causes inadvertent reset to trigger
right after the resume is complete.

Fixes: 058dfc76 (ACPI / watchdog: Add support for WDAT hardware watchdog)
Signed-off-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
Acked-by: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent cda3b917
...@@ -499,6 +499,10 @@ static int wdat_wdt_resume_noirq(struct device *dev) ...@@ -499,6 +499,10 @@ static int wdat_wdt_resume_noirq(struct device *dev)
ret = wdat_wdt_enable_reboot(wdat); ret = wdat_wdt_enable_reboot(wdat);
if (ret) if (ret)
return ret; return ret;
ret = wdat_wdt_ping(&wdat->wdd);
if (ret)
return ret;
} }
return wdat_wdt_start(&wdat->wdd); return wdat_wdt_start(&wdat->wdd);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment