irqchip/MSI: Use irq_domain_update_bus_token instead of an open coded access
authorMarc Zyngier <marc.zyngier@arm.com>
Thu, 22 Jun 2017 10:42:50 +0000 (11:42 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 22 Jun 2017 16:29:17 +0000 (18:29 +0200)
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>
drivers/base/platform-msi.c
drivers/irqchip/irq-armada-370-xp.c
drivers/irqchip/irq-gic-v2m.c
drivers/irqchip/irq-gic-v3-its.c
drivers/irqchip/irq-mips-cpu.c
drivers/irqchip/irq-mips-gic.c
drivers/pci/msi.c
drivers/staging/fsl-mc/bus/fsl-mc-msi.c

index d35e9a20caf7f9d1a79ca689556aceb49cdf0e79..e5473525e7b2e1a1006352257fbff437e8d356a1 100644 (file)
@@ -195,7 +195,7 @@ struct irq_domain *platform_msi_create_irq_domain(struct fwnode_handle *fwnode,
 
        domain = msi_create_irq_domain(fwnode, info, parent);
        if (domain)
-               domain->bus_token = DOMAIN_BUS_PLATFORM_MSI;
+               irq_domain_update_bus_token(domain, DOMAIN_BUS_PLATFORM_MSI);
 
        return domain;
 }
index eb0d4d41b15691721ee8b3a6da87d1fada27248a..5e16d042f281097b8cc287ca484edf90095004ee 100644 (file)
@@ -563,7 +563,7 @@ static int __init armada_370_xp_mpic_of_init(struct device_node *node,
                irq_domain_add_linear(node, nr_irqs,
                                &armada_370_xp_mpic_irq_ops, NULL);
        BUG_ON(!armada_370_xp_mpic_domain);
-       armada_370_xp_mpic_domain->bus_token = DOMAIN_BUS_WIRED;
+       irq_domain_update_bus_token(armada_370_xp_mpic_domain, DOMAIN_BUS_WIRED);
 
        /* Setup for the boot CPU */
        armada_xp_mpic_perf_init();
index 863e073c6f7f4e26cce71ae30e3625928e83b634..993a8426a45384a650ac1b68b19760d1a47ee684 100644 (file)
@@ -280,7 +280,7 @@ static int gicv2m_allocate_domains(struct irq_domain *parent)
                return -ENOMEM;
        }
 
-       inner_domain->bus_token = DOMAIN_BUS_NEXUS;
+       irq_domain_update_bus_token(inner_domain, DOMAIN_BUS_NEXUS);
        inner_domain->parent = parent;
        pci_domain = pci_msi_create_irq_domain(v2m->fwnode,
                                               &gicv2m_msi_domain_info,
index 45ea193325d22a63266f8f43cc7ff3a555e7da27..0590165412771887629ab5be0471f7a39680c289 100644 (file)
@@ -1661,7 +1661,7 @@ static int its_init_domain(struct fwnode_handle *handle, struct its_node *its)
        }
 
        inner_domain->parent = its_parent;
-       inner_domain->bus_token = DOMAIN_BUS_NEXUS;
+       irq_domain_update_bus_token(inner_domain, DOMAIN_BUS_NEXUS);
        inner_domain->flags |= IRQ_DOMAIN_FLAG_MSI_REMAP;
        info->ops = &its_msi_domain_ops;
        info->data = its;
index b247f3c743ac2492a105d90c39b9fbd3bdabcc41..0a8ed1c05518a9f7c2b08761338c9bcc56258985 100644 (file)
@@ -240,7 +240,7 @@ static void mips_cpu_register_ipi_domain(struct device_node *of_node)
                                              ipi_domain_state);
        if (!ipi_domain)
                panic("Failed to add MIPS CPU IPI domain");
-       ipi_domain->bus_token = DOMAIN_BUS_IPI;
+       irq_domain_update_bus_token(ipi_domain, DOMAIN_BUS_IPI);
 }
 
 #else /* !CONFIG_GENERIC_IRQ_IPI */
index eb7fbe15996304fc9eecca11a2b71b70bffd284d..d3a6dc800e3c7decfb595dacc92dedece37c3f57 100644 (file)
@@ -960,7 +960,7 @@ static void __init __gic_init(unsigned long gic_base_addr,
                panic("Failed to add GIC IPI domain");
 
        gic_ipi_domain->name = "mips-gic-ipi";
-       gic_ipi_domain->bus_token = DOMAIN_BUS_IPI;
+       irq_domain_update_bus_token(gic_ipi_domain, DOMAIN_BUS_IPI);
 
        if (node &&
            !of_property_read_u32_array(node, "mti,reserved-ipi-vectors", v, 2)) {
index ba44fdfda66bb5caba6c74d9ad056b34a2d01068..fbad5dca32190e870b8d9538bacd36891ed4c5ee 100644 (file)
@@ -1463,7 +1463,7 @@ struct irq_domain *pci_msi_create_irq_domain(struct fwnode_handle *fwnode,
        if (!domain)
                return NULL;
 
-       domain->bus_token = DOMAIN_BUS_PCI_MSI;
+       irq_domain_update_bus_token(domain, DOMAIN_BUS_PCI_MSI);
        return domain;
 }
 EXPORT_SYMBOL_GPL(pci_msi_create_irq_domain);
index b8b2c86e63d48f50dcf0e0a7bcd21730b85b14f4..17d5cf9f91d4c04527e50df45fb851e1e3322e89 100644 (file)
@@ -170,7 +170,7 @@ struct irq_domain *fsl_mc_msi_create_irq_domain(struct fwnode_handle *fwnode,
 
        domain = msi_create_irq_domain(fwnode, info, parent);
        if (domain)
-               domain->bus_token = DOMAIN_BUS_FSL_MC_MSI;
+               irq_domain_update_bus_token(domain, DOMAIN_BUS_FSL_MC_MSI);
 
        return domain;
 }