OSDN Git Service

watchdog: renesas_wdt: Add suspend/resume support
authorFabrizio Castro <fabrizio.castro@bp.renesas.com>
Mon, 5 Mar 2018 15:30:24 +0000 (15:30 +0000)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Sat, 10 Mar 2018 10:45:34 +0000 (11:45 +0100)
commit07278ca1ccc9a1241f14a8aaa4f2430b7b217c3f
tree597b834ef88a1572e1747f1642a0a035dced6a0b
parent755ae842782037b35742e759aa0601b3c5834111
watchdog: renesas_wdt: Add suspend/resume support

On R-Car Gen2 and RZ/G1 the watchdog IP clock needs to be always ON,
on R-Car Gen3 we power the IP down during suspend.

This commit adds suspend/resume support, so that the watchdog counting
"pauses" during suspend on all of the SoCs compatible with this driver
and on those we are now adding support for (R-Car Gen2 and RZ/G1).

Signed-off-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com>
Signed-off-by: Ramesh Shanmugasundaram <ramesh.shanmugasundaram@bp.renesas.com>
Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/renesas_wdt.c