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


Groups > linux.kernel > #1410271 > unrolled thread

[PATCH 2/2] genirq: Use firmware identifier while adding domain

Started byPunit Agrawal <punit.agrawal@arm.com>
First post2016-05-31 15:00 +0200
Last post2016-05-31 15:00 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 2/2] genirq: Use firmware identifier while adding domain Punit Agrawal <punit.agrawal@arm.com> - 2016-05-31 15:00 +0200

#1410271 — [PATCH 2/2] genirq: Use firmware identifier while adding domain

FromPunit Agrawal <punit.agrawal@arm.com>
Date2016-05-31 15:00 +0200
Subject[PATCH 2/2] genirq: Use firmware identifier while adding domain
Message-ID<rERr4-2PA-9@gated-at.bofh.it>
Use the firmware provided identifier for the domain name.

Signed-off-by: Punit Agrawal <punit.agrawal@arm.com>
---
 kernel/irq/irqdomain.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/kernel/irq/irqdomain.c b/kernel/irq/irqdomain.c
index 1fe2fea..3af09e1 100644
--- a/kernel/irq/irqdomain.c
+++ b/kernel/irq/irqdomain.c
@@ -114,6 +114,10 @@ struct irq_domain *__irq_domain_add(struct fwnode_handle *fwnode, int size,
 	domain->hwirq_max = hwirq_max;
 	domain->revmap_size = size;
 	domain->revmap_direct_max_irq = direct_max;
+	if (is_fwnode_irqchip(fwnode))
+		domain->name = container_of(fwnode, struct irqchip_fwid, fwnode)->name;
+	else
+		domain->name = of_node_full_name(of_node);
 	irq_domain_check_hierarchy(domain);
 
 	mutex_lock(&irq_domain_mutex);
-- 
2.8.0.rc3

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web