[PATCH v4 5/5] irqchip/gic-its: Rework platform MSI deviceID detection
Marc Zyngier
maz at kernel.org
Tue Oct 21 08:15:23 PDT 2025
On Tue, 21 Oct 2025 13:41:03 +0100,
Lorenzo Pieralisi <lpieralisi at kernel.org> wrote:
>
> Current code retrieving platform devices MSI devID in the GIC ITS MSI
> parent helpers suffers from some minor issues:
>
> - It leaks a struct device_node reference
> - It is duplicated between GICv3 and GICv5 for no good reason
> - It does not use the OF phandle iterator code that simplifies
> the msi-parent property parsing
>
> Consolidate GIC v3 and v5 deviceID retrieval in a function that addresses
> the full set of issues in one go by merging GIC v3 and v5 code and
> converting the msi-parent parsing loop to the more modern OF phandle
> iterator API, fixing the struct device_node reference leak in the process.
>
> Signed-off-by: Lorenzo Pieralisi <lpieralisi at kernel.org>
> Reviewed-by: Frank Li <Frank.Li at nxp.com>
> Cc: Sascha Bischoff <sascha.bischoff at arm.com>
> Cc: Thomas Gleixner <tglx at linutronix.de>
> Cc: Rob Herring <robh at kernel.org>
> Cc: Frank Li <Frank.Li at nxp.com>
> Cc: Marc Zyngier <maz at kernel.org>
> ---
> drivers/irqchip/irq-gic-its-msi-parent.c | 91 ++++++------------------
> 1 file changed, 23 insertions(+), 68 deletions(-)
Reviewed-by: Marc Zyngier <maz at kernel.org>
M.
--
Without deviation from the norm, progress is not possible.
More information about the linux-arm-kernel
mailing list