irqchip/stm32-exti: Mark events reserved with RIF configuration check
authorAntonio Borneo <antonio.borneo@foss.st.com>
Mon, 15 Apr 2024 13:49:21 +0000 (15:49 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 22 Apr 2024 22:28:15 +0000 (00:28 +0200)
commitdf41b65ceecac507352804d7647c480f180ff6f9
tree6b802b5a0e317ee4eb771443f9a87b3685df9d79
parentc00a4cb15a90668684d60bc4ff768a23558dadb9
irqchip/stm32-exti: Mark events reserved with RIF configuration check

EXTI events availability depends on Resource Isolation Framework (RIF)
configuration.

RIF grants access to buses with Compartment ID (CID) filtering, secure and
privilege level. It also assigns EXTI events to one or several processors
(CID, Secure, Privilege).

EXTI events used by Linux must be CID-filtered (EnCIDCFGR.CFEN=1) and
statically assigned to CID1 (EnCIDCFR.CID=CID1).

EXTI events not filling these conditions are marked as reserved and can't
be used by Linux.

Signed-off-by: Antonio Borneo <antonio.borneo@foss.st.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20240415134926.1254428-7-antonio.borneo@foss.st.com
drivers/irqchip/irq-stm32-exti.c