mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-01-12 01:20:14 +00:00
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
This commit is contained in:
parent
858e65af91
commit
91650ca5ef
@ -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.
|
||||
*/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user