Commit-ID:  e55dcd4d8b8b82e4ecef2937c6d1dde7ba82916b
Gitweb:     http://git.kernel.org/tip/e55dcd4d8b8b82e4ecef2937c6d1dde7ba82916b
Author:     Marc Zyngier <[email protected]>
AuthorDate: Tue, 28 Jul 2015 14:46:19 +0100
Committer:  Thomas Gleixner <[email protected]>
CommitDate: Thu, 30 Jul 2015 00:14:38 +0200

irqchip/gicv3-its: Register irq domain with NEXUS token

Now that we can distinguish between multiple domains carrying the
same device_node, tag the raw ITS domain with DOMAIN_BUS_NEXUS.
This will allow MSI providers built on top of the raw ITS domain
to identify it.

Signed-off-by: Marc Zyngier <[email protected]>
Cc: <[email protected]>
Cc: Yijing Wang <[email protected]>
Cc: Ma Jun <[email protected]>
Cc: Lorenzo Pieralisi <[email protected]>
Cc: Duc Dang <[email protected]>
Cc: Hanjun Guo <[email protected]>
Cc: Bjorn Helgaas <[email protected]>
Cc: Jiang Liu <[email protected]>
Cc: Jason Cooper <[email protected]>
Link: 
http://lkml.kernel.org/r/[email protected]
Signed-off-by: Thomas Gleixner <[email protected]>
---
 drivers/irqchip/irq-gic-v3-its.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/irqchip/irq-gic-v3-its.c b/drivers/irqchip/irq-gic-v3-its.c
index 7f995d8..58dc70e 100644
--- a/drivers/irqchip/irq-gic-v3-its.c
+++ b/drivers/irqchip/irq-gic-v3-its.c
@@ -1444,13 +1444,14 @@ static int its_probe(struct device_node *node, struct 
irq_domain *parent)
        writel_relaxed(GITS_CTLR_ENABLE, its->base + GITS_CTLR);
 
        if (of_property_read_bool(its->msi_chip.of_node, "msi-controller")) {
-               its->domain = irq_domain_add_tree(NULL, &its_domain_ops, its);
+               its->domain = irq_domain_add_tree(node, &its_domain_ops, its);
                if (!its->domain) {
                        err = -ENOMEM;
                        goto out_free_tables;
                }
 
                its->domain->parent = parent;
+               its->domain->bus_token = DOMAIN_BUS_NEXUS;
 
                its->msi_chip.domain = its_pci_msi_alloc_domain(node,
                                                                its->domain);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to