ARM: stm32mp: fix RIFSC semaphores acquisition
authorGatien Chevallier <gatien.chevallier@foss.st.com>
Fri, 8 Aug 2025 14:03:56 +0000 (16:03 +0200)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Thu, 18 Sep 2025 15:20:30 +0000 (17:20 +0200)
commitbb947665f57629404549cb2f6955ab82e0d557b2
treeb0b47ce1829a54ff4b90c4ee69e48e3947ecaebd
parenta209627ed7921f40669f5c0795570d40e77e4cb7
ARM: stm32mp: fix RIFSC semaphores acquisition

Fix RIFSC semaphores acquisition by not returning an error when the
current CID already possess the semaphore. Also fix an incorrect mask
for the CID value in the SEMCR register.

Signed-off-by: Gatien Chevallier <gatien.chevallier@foss.st.com>
Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
arch/arm/mach-stm32mp/stm32mp2/rifsc.c