]> git.dujemihanovic.xyz Git - u-boot.git/commit
ARM: dts: stm32: Ping IWDG on exit from PSCI suspend code
authorMarek Vasut <marex@denx.de>
Fri, 19 Apr 2024 22:03:09 +0000 (00:03 +0200)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Mon, 17 Jun 2024 07:52:38 +0000 (09:52 +0200)
commit9968e8dbf3887c692dd7f2f83bd43678acd394a5
tree668c4e952b3cf67868de8e48ab87722c30ef8a93
parent2248c96ea1cf0b65377040d9f87ce7d8cf534c63
ARM: dts: stm32: Ping IWDG on exit from PSCI suspend code

Make sure the OS would not get any spurious IWDG pretimeout IRQ
right after the system wakes up. This may happen in case the SoC
got woken up by another source than the IWDG pretimeout and the
pretimeout IRQ arrived immediately afterward, but too late to be
handled by the suspend main loop. In case either of the IWDG is
enabled, ping it first and then return to the OS.

Signed-off-by: Marek Vasut <marex@denx.de>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Reviewed-by: Igor Opaniuk <igor.opaniuk@foundries.io>
arch/arm/mach-stm32mp/stm32mp1/psci.c