[PATCH 5/6] irqchip/al-fic: add support for FIC v3

From: Eliav Farber

Date: Thu Sep 24 2026 - 02:28:20 EST


FIC v3 reports version id 2 in the control register version field. It
exposes the same legacy/error/fatal groups as v2, so add the version to
enum al_fic_version; the existing "version_id > V1" handling masks the
error and fatal groups at init as for v2.

Unlike v2, the v3 error and fatal mask registers read back correctly, so
v3 does not need the v2 mask_cache workaround: the workaround is gated on
AL_FIC_VERSION_V2 and v3 keeps the register-seeded mask_cache.

Signed-off-by: Eliav Farber <farbere@xxxxxxxxxx>
---
drivers/irqchip/irq-al-fic.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/irqchip/irq-al-fic.c b/drivers/irqchip/irq-al-fic.c
index 90a64350be63..d9f5d8d8a4ba 100644
--- a/drivers/irqchip/irq-al-fic.c
+++ b/drivers/irqchip/irq-al-fic.c
@@ -39,6 +39,7 @@ enum al_fic_state {
enum al_fic_version {
AL_FIC_VERSION_V1,
AL_FIC_VERSION_V2,
+ AL_FIC_VERSION_V3,
};

enum al_fic_id {
--
2.47.3