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

From: Wolfram Sang

Date: Fri Sep 19 2025 - 11:47:07 EST



> 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: signature.asc
Description: PGP signature