]> 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)
commit5dea2d830eb50fd2baecf1a33dc96daec82069e6
tree66900ea42c2fc2278633f91f2c565a5aeb74997c
parent0672ea9136b68f085a0961dd4d688419a1782ca4
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