watchdog: imx2_wdg: Alow ping on suspend
authorAlistair Francis <alistair@alistair23.me>
Thu, 27 Jan 2022 10:47:39 +0000 (20:47 +1000)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Sun, 27 Mar 2022 15:04:07 +0000 (17:04 +0200)
commitcf6e4bc16dba2068fa4a115300185a8c56edc93f
tree095b1168a7482623678b2185dbde50a0330470f6
parent09688c0166e76ce2fb85e86b9d99be8b0084cdf9
watchdog: imx2_wdg: Alow ping on suspend

The i.MX watchdog cannot be disabled by software once it has been
enabled. This means that it can't be stopped before suspend.

For systems that enter low power mode this is fine, as the watchdog will
be automatically stopped by hardware in low power mode. Not all i.MX
platforms support low power mode in the mainline kernel. For example the
i.MX7D does not enter low power mode and so will be rebooted 2 minutes
after entering sleep states.

This patch introduces a device tree property "fsl,ping-during-suspend"
that can be used to enable ping on suspend support for these systems.

Signed-off-by: Alistair Francis <alistair@alistair23.me>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20220127104739.312592-1-alistair@alistair23.me
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/imx2_wdt.c