[PATCH v5 8/9] irqchip/al-fic: add support for FIC v3

From: Eliav Farber

Date: Sun Oct 11 2026 - 01:06:12 EST


FIC v3 reports version id 2 in the control register version field. It
exposes the same info/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.

Signed-off-by: Eliav Farber <farbere@xxxxxxxxxx>
Reviewed-by: Radu Rendec <radu@xxxxxxxxxx>
---
v5: no change.

v4: reduced to the enum addition. The comment hunk this patch carried
reworded the gc_flags comment in al_fic_register(), which patch 6 no
longer adds, so there is nothing left to reword. The commit message
paragraph about the v2 mask_cache workaround not applying to v3 goes
with it. The enum addition itself is unchanged, so Reviewed-by: Radu
Rendec is retained.

v3: no change. Added Reviewed-by: Radu Rendec.

v2: the "erratum fixed from v3 onwards" code comment moved here (where
AL_FIC_VERSION_V3 is introduced) from the FIC v2 patch, so the claim
that v3 keeps the register-seeded mask_cache has its code in the same
commit.

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 1d524b6aba42..13a945a1d312 100644
--- a/drivers/irqchip/irq-al-fic.c
+++ b/drivers/irqchip/irq-al-fic.c
@@ -44,6 +44,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