]> git.dujemihanovic.xyz Git - u-boot.git/commit
ARM: stm32: Fix secure_waitbits() mask check
authorMarek Vasut <marex@denx.de>
Mon, 8 Jul 2024 11:43:23 +0000 (13:43 +0200)
committerPatrick Delaunay <patrick.delaunay@foss.st.com>
Wed, 25 Sep 2024 17:40:46 +0000 (19:40 +0200)
commitb0348a97de9e01fe2165520cfc1bc9ed5594f9ab
treeaefd6eefd8765f43d96cca934bce06fd695b12fe
parent6b84683acc86f94c7dc15d621b5bca533bf8a01a
ARM: stm32: Fix secure_waitbits() mask check

Do not apply bitwise AND to register value and expected value, only
apply bitwise AND to register value and mask, and only then compare
the result with expected value that the function polls for.

Fixes: b49105320a5b ("stm32mp: psci: Implement PSCI system suspend and DRAM SSR")
Signed-off-by: Marek Vasut <marex@denx.de>
arch/arm/mach-stm32mp/stm32mp1/psci.c