Commit e55dcd4d authored by Marc Zyngier's avatar Marc Zyngier Committed by Thomas Gleixner

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: default avatarMarc 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.comSigned-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent f130420e
...@@ -1444,13 +1444,14 @@ static int its_probe(struct device_node *node, struct irq_domain *parent) ...@@ -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); writel_relaxed(GITS_CTLR_ENABLE, its->base + GITS_CTLR);
if (of_property_read_bool(its->msi_chip.of_node, "msi-controller")) { 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) { if (!its->domain) {
err = -ENOMEM; err = -ENOMEM;
goto out_free_tables; goto out_free_tables;
} }
its->domain->parent = parent; its->domain->parent = parent;
its->domain->bus_token = DOMAIN_BUS_NEXUS;
its->msi_chip.domain = its_pci_msi_alloc_domain(node, its->msi_chip.domain = its_pci_msi_alloc_domain(node,
its->domain); its->domain);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment