watchdog: apple: Deactivate on suspend
authorJanne Grunau <j@jannau.net>
Mon, 16 Oct 2023 06:58:01 +0000 (08:58 +0200)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Sun, 29 Oct 2023 18:45:10 +0000 (19:45 +0100)
commit78ca4d6902f4a9631ab74cc96d485eb1f1e5fac9
tree2b32f1cae1ad0768bb0d2b220116591787f8c03b
parent49bd08b36143d521579929316a1ea5664d86f451
watchdog: apple: Deactivate on suspend

The watchdog remains active after putting the system into suspend. Add
PM callbacks to deactivate the watchdog on suspend an re-activate it on
resume.

Signed-off-by: Janne Grunau <j@jannau.net>
Reviewed-by: Eric Curtin <ecurtin@redhat.com>
Reviewed-by: Neal Gompa <neal@gompa.dev>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20231016-apple-watchdog-suspend-v2-1-7ffff8042dbc@jannau.net
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/apple_wdt.c