watchdog: imx7ulp_wdt: init wdog when it was active
authorJason Liu <jason.hui.liu@nxp.com>
Thu, 25 Aug 2022 08:32:55 +0000 (16:32 +0800)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Sun, 2 Oct 2022 10:55:46 +0000 (12:55 +0200)
commitcef6bc98d50da24252fb289759f1790e17afa448
tree66900ea42c2fc2278633f91f2c565a5aeb74997c
parentc32b53f965edcab53e16a2dea02d34e1c2c8173c
watchdog: imx7ulp_wdt: init wdog when it was active

Paired with suspend, we can only init wdog again when it was active
and ping it once to avoid the watchdog timeout after it resumed.

Signed-off-by: Jason Liu <jason.hui.liu@nxp.com>
Signed-off-by: Alice Guo <alice.guo@nxp.com>
Reviewed-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Jacky Bai <ping.bai@nxp.com>
Tested-by: Jacky Bai <ping.bai@nxp.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20220825083256.14565-7-alice.guo@oss.nxp.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/imx7ulp_wdt.c