Commit 91650ca5 authored by Thomas Gleixner's avatar Thomas Gleixner
Browse files

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: default avatarThomas Gleixner <tglx@linutronix.de>
Signed-off-by: default avatarNam Cao <tglx@linutronix.de>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/92a6d68db014e945337c10649a41605da05783da.1750860131.git.namcao@linutronix.de
parent 858e65af
Loading
Loading
Loading
Loading
+10 −10
Original line number Diff line number Diff line
@@ -172,18 +172,18 @@ static const struct msi_parent_ops mip_msi_parent_ops = {

static int mip_init_domains(struct mip_priv *mip, struct device_node *np)
{
	struct irq_domain *middle;
	struct irq_domain_info info = {
		.fwnode		= of_fwnode_handle(np),
		.ops		= &mip_middle_domain_ops,
		.host_data	= mip,
		.size		= mip->num_msis,
		.parent		= mip->parent,
		.dev		= mip->dev,
	};

	middle = irq_domain_create_hierarchy(mip->parent, 0, mip->num_msis, of_fwnode_handle(np),
					     &mip_middle_domain_ops, mip);
	if (!middle)
	if (!msi_create_parent_irq_domain(&info, &mip_msi_parent_ops))
		return -ENOMEM;

	irq_domain_update_bus_token(middle, DOMAIN_BUS_GENERIC_MSI);
	middle->dev = mip->dev;
	middle->flags |= IRQ_DOMAIN_FLAG_MSI_PARENT;
	middle->msi_parent_ops = &mip_msi_parent_ops;

	/*
	 * All MSI-X unmasked for the host, masked for the VPU, and edge-triggered.
	 */