Re: [PATCH v3 7/8] soc: renesas: Add support for Renesas RZ/N1 GPIO Interrupt Multiplexer

Wolfram Sang
2025-09-19T15:47:07Z

[-- Attachment #1: Type: text/plain, Size: 490 bytes --]

> kind of:
> static u8 reg_index[8] = {103, 104, 105, ... , 110};
>
> Base on GIC IRQ number retrieve from the interrupt-map item, we search for
> the index in reg_index that match this number. The index found is the index
> used to access the register.
>
> What do you think about this?

I sure like it better than a fixed ordering in DT. And the advantage
compared to subtracting 103 is that reg_index can be flexible in case we
want to support other SoCs than RZ/N1?

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]