]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
watchdog: imx_sc_wdt: Don't disable WDT in suspend
authorJonas Blixt <jonas.blixt@actia.se>
Thu, 1 Aug 2024 12:18:45 +0000 (14:18 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Oct 2024 13:11:02 +0000 (15:11 +0200)
commitbd5f76ccc079cfee9a287d131a5c8c65ffb01e20
tree7afe0ed8d30aab3077e609ec764bc3f807d1d847
parent1730d47d1865af89efd01cf0469a9a739cbf60f2
watchdog: imx_sc_wdt: Don't disable WDT in suspend

[ Upstream commit 2d9d6d300fb0a4ae4431bb308027ac9385746d42 ]

Parts of the suspend and resume chain is left unprotected if we disable
the WDT here.

>From experiments we can see that the SCU disables and re-enables the WDT
when we enter and leave suspend to ram. By not touching the WDT here we
are protected by the WDT all the way to the SCU.

Signed-off-by: Jonas Blixt <jonas.blixt@actia.se>
CC: Anson Huang <anson.huang@nxp.com>
Fixes: 986857acbc9a ("watchdog: imx_sc: Add i.MX system controller watchdog support")
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20240801121845.1465765-1-jonas.blixt@actia.se
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/watchdog/imx_sc_wdt.c