Skip to contentSkip to conversation

microblaze: intc: set the default irq_domain

PATCH Applied Dan Christensen 2 participants 2 messages Mar 17, 2013 – Mar 18, 2013 Microblaze architecture

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 microblaze: intc: set the default irq_domain

Register the irq_domain created during initialization as the default so that device drivers can pass NULL to irq_create_mapping and get a virtual irq to pass to request_irq.

---
 arch/microblaze/kernel/intc.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
arch/microblaze/kernel/intc.c +2 -0
index 8778adf..d85fa3a 100644
@@ -172,4 +172,6 @@ void __init init_IRQ(void)
 	 * and commits this patch.  ~~gcl */
 	root_domain = irq_domain_add_linear(intc, nr_irq, &xintc_irq_domain_ops,
 							(void *)intr_mask);
+
+	irq_set_default_host(root_domain);
 }
Signature · 1 line
1.7.0.4
maintainer Applied
#1 lore raw

2013/3/17 Dan Christensen <[email protected]>:

Quoted 21 lines

Register the irq_domain created during initialization as the default so that device drivers can pass NULL to irq_create_mapping and get a virtual irq to pass to request_irq.

---
 arch/microblaze/kernel/intc.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
arch/microblaze/kernel/intc.c +2 -1
index 8778adf..d85fa3a 100644
@@ -172,4 +172,6 @@ void __init init_IRQ(void)
         * and commits this patch.  ~~gcl */
        root_domain = irq_domain_add_linear(intc, nr_irq, &xintc_irq_domain_ops,
                                                        (void *)intr_mask);
+
+       irq_set_default_host(root_domain);
 }
--
Quoted 2 lines

1.7.0.4

Applied.

Thanks,
Michal

Signature · 5 lines
Michal Simek, Ing. (M.Eng)
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Microblaze cpu - http://www.monstr.eu/fdt/
Maintainer of Linux kernel - Xilinx Zynq ARM architecture
Microblaze U-BOOT custodian and responsible for u-boot arm zynq platform