irqchip/stm32-exti: Tag emr register as undefined for stm32mp15
authorAlexandre Torgue <alexandre.torgue@foss.st.com>
Mon, 6 Jun 2022 16:27:55 +0000 (18:27 +0200)
committerMarc Zyngier <maz@kernel.org>
Thu, 7 Jul 2022 08:07:44 +0000 (09:07 +0100)
commitb38040f0167d25092e813c8d1a70cf2708c1720b
treef136a96002774f0d92d80b067c27d6fdcbef9528
parentc16ae609214e835692c33b1a090b5a15bf1b9e7e
irqchip/stm32-exti: Tag emr register as undefined for stm32mp15

The reference manual RM0436 of stm32mp15 till version v4.0 was
erroneously reporting the Event Mask Registers (EMR) for the
Cortex-A CPUs.
These registers have been removed from v5.0 of the manual and the
corresponding offsets have been marked as 'Reserved'.

Prevent accessing these reserved addresses by tagging the EMR
offsets as UNDEF_REG and modifying the code to handle this case.

Signed-off-by: Alexandre Torgue <alexandre.torgue@foss.st.com>
Signed-off-by: Antonio Borneo <antonio.borneo@foss.st.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20220606162757.415354-5-antonio.borneo@foss.st.com
drivers/irqchip/irq-stm32-exti.c