]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
of/irq: Add msi-parent check to of_msi_xlate()
authorLorenzo Pieralisi <lpieralisi@kernel.org>
Tue, 21 Oct 2025 12:40:59 +0000 (14:40 +0200)
committerRob Herring (Arm) <robh@kernel.org>
Wed, 22 Oct 2025 14:03:47 +0000 (09:03 -0500)
commit119aaeed0b6729293f41ea33be05ecd27a947d48
treeff848806fec3399426c395ecd16aad45d76bdaf9
parent3a8660878839faadb4f1a6dd72c3179c1df56787
of/irq: Add msi-parent check to of_msi_xlate()

In some legacy platforms the MSI controller for a PCI host bridge is
identified by an msi-parent property whose phandle points at an MSI
controller node with no #msi-cells property, that implicitly
means #msi-cells == 0.

For such platforms, mapping a device ID and retrieving the MSI controller
node becomes simply a matter of checking whether in the device hierarchy
there is an msi-parent property pointing at an MSI controller node with
such characteristics.

Add a helper function to of_msi_xlate() to check the msi-parent property in
addition to msi-map and retrieve the MSI controller node (with a 1:1 ID
deviceID-IN<->deviceID-OUT  mapping) to provide support for deviceID
mapping and MSI controller node retrieval for such platforms.

Fixes: 57d72196dfc8 ("irqchip/gic-v5: Add GICv5 ITS support")
Signed-off-by: Lorenzo Pieralisi <lpieralisi@kernel.org>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Cc: Sascha Bischoff <sascha.bischoff@arm.com>
Cc: Rob Herring <robh@kernel.org>
Cc: Marc Zyngier <maz@kernel.org>
Link: https://patch.msgid.link/20251021124103.198419-2-lpieralisi@kernel.org
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
drivers/of/irq.c