Skip to content

Commit 91650ca

Browse files
committed
irqchip/bcm2712-mip: Switch to msi_create_parent_irq_domain()
Switch to use the concise helper to create an MSI parent domain. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Nam Cao <tglx@linutronix.de> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lore.kernel.org/all/92a6d68db014e945337c10649a41605da05783da.1750860131.git.namcao@linutronix.de
1 parent 858e65a commit 91650ca

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

drivers/irqchip/irq-bcm2712-mip.c

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -172,18 +172,18 @@ static const struct msi_parent_ops mip_msi_parent_ops = {
172172

173173
static int mip_init_domains(struct mip_priv *mip, struct device_node *np)
174174
{
175-
struct irq_domain *middle;
176-
177-
middle = irq_domain_create_hierarchy(mip->parent, 0, mip->num_msis, of_fwnode_handle(np),
178-
&mip_middle_domain_ops, mip);
179-
if (!middle)
175+
struct irq_domain_info info = {
176+
.fwnode = of_fwnode_handle(np),
177+
.ops = &mip_middle_domain_ops,
178+
.host_data = mip,
179+
.size = mip->num_msis,
180+
.parent = mip->parent,
181+
.dev = mip->dev,
182+
};
183+
184+
if (!msi_create_parent_irq_domain(&info, &mip_msi_parent_ops))
180185
return -ENOMEM;
181186

182-
irq_domain_update_bus_token(middle, DOMAIN_BUS_GENERIC_MSI);
183-
middle->dev = mip->dev;
184-
middle->flags |= IRQ_DOMAIN_FLAG_MSI_PARENT;
185-
middle->msi_parent_ops = &mip_msi_parent_ops;
186-
187187
/*
188188
* All MSI-X unmasked for the host, masked for the VPU, and edge-triggered.
189189
*/

0 commit comments

Comments
 (0)