Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1231057

[PATCH v2 3/3] irqchip/gicv3-its: Handle OF device tree "msi-map" properties.

Path csiph.com!goblin2!goblin.stu.neva.ru!aioe.org!bofh.it!news.nic.it!robomod
From David Daney <ddaney.cavm@gmail.com>
Newsgroups linux.kernel
Subject [PATCH v2 3/3] irqchip/gicv3-its: Handle OF device tree "msi-map" properties.
Date Wed, 23 Sep 2015 02:10:01 +0200
Message-ID <qbFNf-4eK-7@gated-at.bofh.it> (permalink)
References <qbFNf-4eK-3@gated-at.bofh.it>
X-Original-To linux-kernel@vger.kernel.org, Will Deacon <will.deacon@arm.com>, Rob Herring <robh+dt@kernel.org>, Pawel Moll <pawel.moll@arm.com>, Mark Rutland <mark.rutland@arm.com>, Ian Campbell <ijc+devicetree@hellion.org.uk>, Kumar Gala <galak@codeaurora.org>, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, Marc Zyngier <marc.zyngier@arm.com>, Grant Likely <grant.likely@linaro.org>, Thomas Gleixner <tglx@linutronix.de>, Jason Cooper <jason@lakedaemon.net>
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=WCTkQ5lN+SoPRBqk3t4C85RW3uB+cA6R8o9zTlqDt48=; b=rtPuNcNHLlgWa4Mg+pkFhw7KrewGHAteWAAQld275QbLTr+06VN0yYMPLgawcAVjaF kA4KusRYXwyzECGaWTjwaXKlhKKigh2/s4DCvI00FasMlbDiua/L/jcr9zbHPi31VNmw hyxyEBThrAFIg7Et0jbUxpCrOIMlqwIrCjVlJdmglGxHFOATK8A53I0zY8y35iStmSD2 7qbpEAsiNPCEygWKp6lqNiX3gOiZnODBgAJj6fielFMQxSALhcIi6oKq/skokInb29XM 1SuMJyXIZdyBzQHtCCQ3rJ5yNkttoQoDOkSffh2KCw8XhXWFg2fl6FoyZv3JNc2jnfIc CvCA==
X-Received by 10.107.128.145 with SMTP id k17mr39413463ioi.24.1442966412684; Tue, 22 Sep 2015 17:00:12 -0700 (PDT)
X-Mailer git-send-email 1.7.11.7
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 31
Organization linux.* mail to news gateway
X-Original-Cc David Daney <david.daney@cavium.com>
X-Original-Date Tue, 22 Sep 2015 17:00:06 -0700
X-Original-Message-ID <1442966406-13198-4-git-send-email-ddaney.cavm@gmail.com>
X-Original-References <1442966406-13198-1-git-send-email-ddaney.cavm@gmail.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1231057

Show key headers only | View raw


From: David Daney <david.daney@cavium.com>

Call of_msi_map_rid() to handle mapping of the requester id.

Signed-off-by: David Daney <david.daney@cavium.com>
---
 drivers/irqchip/irq-gic-v3-its-pci-msi.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/irqchip/irq-gic-v3-its-pci-msi.c b/drivers/irqchip/irq-gic-v3-its-pci-msi.c
index cf351c6..8b1c938 100644
--- a/drivers/irqchip/irq-gic-v3-its-pci-msi.c
+++ b/drivers/irqchip/irq-gic-v3-its-pci-msi.c
@@ -86,7 +86,8 @@ static int its_pci_msi_prepare(struct irq_domain *domain, struct device *dev,
 	pci_for_each_dma_alias(pdev, its_get_pci_alias, &dev_alias);
 
 	/* ITS specific DeviceID, as the core ITS ignores dev. */
-	info->scratchpad[0].ul = dev_alias.dev_id;
+	info->scratchpad[0].ul = of_msi_map_rid(dev, domain->of_node,
+						dev_alias.dev_id);
 
 	return msi_info->ops->msi_prepare(domain->parent,
 					  dev, dev_alias.count, info);
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v2 0/3] of, irqchip/gicv3-its: Handle "msi-map" properties. David Daney <ddaney.cavm@gmail.com> - 2015-09-23 02:10 +0200
  [PATCH v2 1/3] Docs: dt: Add PCI MSI map bindings David Daney <ddaney.cavm@gmail.com> - 2015-09-23 02:10 +0200
    Re: [PATCH v2 1/3] Docs: dt: Add PCI MSI map bindings Marc Zyngier <marc.zyngier@arm.com> - 2015-09-23 18:40 +0200
  [PATCH v2 3/3] irqchip/gicv3-its:  Handle OF device tree "msi-map" properties. David Daney <ddaney.cavm@gmail.com> - 2015-09-23 02:10 +0200
    Re: [PATCH v2 3/3] irqchip/gicv3-its:  Handle OF device tree  "msi-map" properties. Marc Zyngier <marc.zyngier@arm.com> - 2015-09-23 19:10 +0200
      Re: [PATCH v2 3/3] irqchip/gicv3-its:  Handle OF device tree  "msi-map" properties. Will Deacon <will.deacon@arm.com> - 2015-09-23 20:00 +0200
        Re: [PATCH v2 3/3] irqchip/gicv3-its:  Handle OF device tree  "msi-map" properties. Marc Zyngier <marc.zyngier@arm.com> - 2015-09-23 20:20 +0200
          Re: [PATCH v2 3/3] irqchip/gicv3-its: Handle OF device tree "msi-map"  properties. Robin Murphy <robin.murphy@arm.com> - 2015-09-23 21:30 +0200
  [PATCH v2 2/3] of/irq: Add new function of_msi_map_rid() David Daney <ddaney.cavm@gmail.com> - 2015-09-23 02:10 +0200
    Re: [PATCH v2 2/3] of/irq: Add new function of_msi_map_rid() Marc Zyngier <marc.zyngier@arm.com> - 2015-09-23 19:00 +0200
    Re: [PATCH v2 2/3] of/irq: Add new function of_msi_map_rid() Rob Herring <robh@kernel.org> - 2015-09-23 19:10 +0200

csiph-web