mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
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: 058dfc7670 (ACPI / watchdog: Add support for WDAT hardware watchdog)
Signed-off-by: Mika Westerberg <[email protected]>
Acked-by: Guenter Roeck <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
This commit is contained in:
parent
cda3b91785
commit
28e3d7002b
1 changed files with 4 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue