Skip to content

Commit

Permalink
watchdog: wdat_wdt: Ping the watchdog on resume
Browse files Browse the repository at this point in the history
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: 058dfc7 (ACPI / watchdog: Add support for WDAT hardware watchdog)
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Acked-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
  • Loading branch information
Mika Westerberg authored and Rafael J. Wysocki committed Oct 20, 2016
1 parent cda3b91 commit 28e3d70
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/watchdog/wdat_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 28e3d70

Please sign in to comment.