提交 28e3d700 编写于 作者: M Mika Westerberg 提交者: 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: NMika Westerberg <mika.westerberg@linux.intel.com>
Acked-by: NGuenter Roeck <linux@roeck-us.net>
Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册