[PATCH v4 7/8] irqchip/al-fic: add support for FIC v3

From: Eliav Farber

Date: Thu Oct 08 2026 - 05:02:03 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>
---
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 d5671b9624db..141d9d492d43 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