Skip to content

Commit 96f0d93

Browse files
Marc ZyngierKAGA-KOKO
authored andcommitted
irqchip/MSI: Use irq_domain_update_bus_token instead of an open coded access
Now that we have irq_domain_update_bus_token(), switch everyone over to it. The debugfs code thanks you for your continued support. Signed-off-by: Marc Zyngier <marc.zyngier@arm.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
1 parent 61d0a00 commit 96f0d93

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

drivers/base/platform-msi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ struct irq_domain *platform_msi_create_irq_domain(struct fwnode_handle *fwnode,
195195

196196
domain = msi_create_irq_domain(fwnode, info, parent);
197197
if (domain)
198-
domain->bus_token = DOMAIN_BUS_PLATFORM_MSI;
198+
irq_domain_update_bus_token(domain, DOMAIN_BUS_PLATFORM_MSI);
199199

200200
return domain;
201201
}

drivers/irqchip/irq-armada-370-xp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ static int __init armada_370_xp_mpic_of_init(struct device_node *node,
563563
irq_domain_add_linear(node, nr_irqs,
564564
&armada_370_xp_mpic_irq_ops, NULL);
565565
BUG_ON(!armada_370_xp_mpic_domain);
566-
armada_370_xp_mpic_domain->bus_token = DOMAIN_BUS_WIRED;
566+
irq_domain_update_bus_token(armada_370_xp_mpic_domain, DOMAIN_BUS_WIRED);
567567

568568
/* Setup for the boot CPU */
569569
armada_xp_mpic_perf_init();

drivers/irqchip/irq-gic-v2m.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ static int gicv2m_allocate_domains(struct irq_domain *parent)
280280
return -ENOMEM;
281281
}
282282

283-
inner_domain->bus_token = DOMAIN_BUS_NEXUS;
283+
irq_domain_update_bus_token(inner_domain, DOMAIN_BUS_NEXUS);
284284
inner_domain->parent = parent;
285285
pci_domain = pci_msi_create_irq_domain(v2m->fwnode,
286286
&gicv2m_msi_domain_info,

drivers/irqchip/irq-gic-v3-its.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1661,7 +1661,7 @@ static int its_init_domain(struct fwnode_handle *handle, struct its_node *its)
16611661
}
16621662

16631663
inner_domain->parent = its_parent;
1664-
inner_domain->bus_token = DOMAIN_BUS_NEXUS;
1664+
irq_domain_update_bus_token(inner_domain, DOMAIN_BUS_NEXUS);
16651665
inner_domain->flags |= IRQ_DOMAIN_FLAG_MSI_REMAP;
16661666
info->ops = &its_msi_domain_ops;
16671667
info->data = its;

drivers/irqchip/irq-mips-cpu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ static void mips_cpu_register_ipi_domain(struct device_node *of_node)
240240
ipi_domain_state);
241241
if (!ipi_domain)
242242
panic("Failed to add MIPS CPU IPI domain");
243-
ipi_domain->bus_token = DOMAIN_BUS_IPI;
243+
irq_domain_update_bus_token(ipi_domain, DOMAIN_BUS_IPI);
244244
}
245245

246246
#else /* !CONFIG_GENERIC_IRQ_IPI */

drivers/irqchip/irq-mips-gic.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -960,7 +960,7 @@ static void __init __gic_init(unsigned long gic_base_addr,
960960
panic("Failed to add GIC IPI domain");
961961

962962
gic_ipi_domain->name = "mips-gic-ipi";
963-
gic_ipi_domain->bus_token = DOMAIN_BUS_IPI;
963+
irq_domain_update_bus_token(gic_ipi_domain, DOMAIN_BUS_IPI);
964964

965965
if (node &&
966966
!of_property_read_u32_array(node, "mti,reserved-ipi-vectors", v, 2)) {

drivers/pci/msi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1463,7 +1463,7 @@ struct irq_domain *pci_msi_create_irq_domain(struct fwnode_handle *fwnode,
14631463
if (!domain)
14641464
return NULL;
14651465

1466-
domain->bus_token = DOMAIN_BUS_PCI_MSI;
1466+
irq_domain_update_bus_token(domain, DOMAIN_BUS_PCI_MSI);
14671467
return domain;
14681468
}
14691469
EXPORT_SYMBOL_GPL(pci_msi_create_irq_domain);

drivers/staging/fsl-mc/bus/fsl-mc-msi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ struct irq_domain *fsl_mc_msi_create_irq_domain(struct fwnode_handle *fwnode,
170170

171171
domain = msi_create_irq_domain(fwnode, info, parent);
172172
if (domain)
173-
domain->bus_token = DOMAIN_BUS_FSL_MC_MSI;
173+
irq_domain_update_bus_token(domain, DOMAIN_BUS_FSL_MC_MSI);
174174

175175
return domain;
176176
}

0 commit comments

Comments
 (0)