diff options
author | Marc Zyngier <marc.zyngier@arm.com> | 2015-07-28 09:46:19 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2015-07-29 18:14:38 -0400 |
commit | e55dcd4d8b8b82e4ecef2937c6d1dde7ba82916b (patch) | |
tree | 322fed1148a4eada165ff8040af977a72e0f150d /drivers/irqchip/irq-gic-v3-its.c | |
parent | f130420e51df30891b55efcef24f5358b2fc2b97 (diff) |
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 <marc.zyngier@arm.com>
Cc: <linux-arm-kernel@lists.infradead.org>
Cc: Yijing Wang <wangyijing@huawei.com>
Cc: Ma Jun <majun258@huawei.com>
Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Cc: Duc Dang <dhdang@apm.com>
Cc: Hanjun Guo <hanjun.guo@linaro.org>
Cc: Bjorn Helgaas <bhelgaas@google.com>
Cc: Jiang Liu <jiang.liu@linux.intel.com>
Cc: Jason Cooper <jason@lakedaemon.net>
Link: http://lkml.kernel.org/r/1438091186-10244-13-git-send-email-marc.zyngier@arm.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'drivers/irqchip/irq-gic-v3-its.c')
-rw-r--r-- | drivers/irqchip/irq-gic-v3-its.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/irqchip/irq-gic-v3-its.c b/drivers/irqchip/irq-gic-v3-its.c index 7f995d876029..58dc70e72c45 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) | |||
1444 | writel_relaxed(GITS_CTLR_ENABLE, its->base + GITS_CTLR); | 1444 | writel_relaxed(GITS_CTLR_ENABLE, its->base + GITS_CTLR); |
1445 | 1445 | ||
1446 | if (of_property_read_bool(its->msi_chip.of_node, "msi-controller")) { | 1446 | if (of_property_read_bool(its->msi_chip.of_node, "msi-controller")) { |
1447 | its->domain = irq_domain_add_tree(NULL, &its_domain_ops, its); | 1447 | its->domain = irq_domain_add_tree(node, &its_domain_ops, its); |
1448 | if (!its->domain) { | 1448 | if (!its->domain) { |
1449 | err = -ENOMEM; | 1449 | err = -ENOMEM; |
1450 | goto out_free_tables; | 1450 | goto out_free_tables; |
1451 | } | 1451 | } |
1452 | 1452 | ||
1453 | its->domain->parent = parent; | 1453 | its->domain->parent = parent; |
1454 | its->domain->bus_token = DOMAIN_BUS_NEXUS; | ||
1454 | 1455 | ||
1455 | its->msi_chip.domain = its_pci_msi_alloc_domain(node, | 1456 | its->msi_chip.domain = its_pci_msi_alloc_domain(node, |
1456 | its->domain); | 1457 | its->domain); |