]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite9d78704247d3147671793ade65adf6f0971d146
tree66900ea42c2fc2278633f91f2c565a5aeb74997c
parent1bda6cefc44aeb73de691575b45adc5956da0188
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