watchdog: da9063: optionally disable watchdog during suspend
authorPrimoz Fiser <primoz.fiser@norik.com>
Fri, 22 Apr 2022 07:27:12 +0000 (09:27 +0200)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Sat, 21 May 2022 08:07:31 +0000 (10:07 +0200)
commita7ceca4398bc835c6ad29d10e1106de4cf0332e1
tree083177f877c03cecdd832053495f6b155d48c51f
parentb1912875a548cf32eebc77eec85034052909bba8
watchdog: da9063: optionally disable watchdog during suspend

Optionally disable watchdog during suspend (if enabled) and re-enable
it upon resume.
This enables boards to sleep without being interrupted by the watchdog.

This patch is based on commit f6c98b08381c ("watchdog: da9062: add
power management ops") and commit 8541673d2a5f ("watchdog: da9062: fix
power management ops") and brings the same functionality to DA9063.

Signed-off-by: Primoz Fiser <primoz.fiser@norik.com>
Reviewed-by: Adam Thomson <DLG-Adam.Thomson.Opensource@dm.renesas.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20220422072713.3172345-2-primoz.fiser@norik.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/da9063_wdt.c