* Re: [PATCH] irqdomain: Initialize number of IRQs for simple domains [not found] <1325860112-22051-1-git-send-email-thierry.reding@avionic-design.de> @ 2012-01-06 16:58 ` Cousson, Benoit 2012-01-09 9:03 ` Thierry Reding 0 siblings, 1 reply; 2+ messages in thread From: Cousson, Benoit @ 2012-01-06 16:58 UTC (permalink / raw) To: Thierry Reding Cc: devicetree-discuss, Tony Lindgren, Catalin Marinas, Daniel Walker, Russell King, Uwe Kleine-König, David Brown, open list:ARM/QUALCOMM MSM..., Rob Herring, Barry Song, Thomas Gleixner, OMAP SUPPORT, Andrew Victor, open list:ARM/ATMEL AT91RM9..., open list, Bryan Huntsman, Richard Zhao, Sascha Hauer, David Woodhouse Hi Thierry, On 1/6/2012 3:28 PM, Thierry Reding wrote: > The irq_domain_add() function needs the number of interrupts in the > domain to properly initialize them. In addition the allocated domain > is now returned by the irq_domain_{add,generate}_simple() helpers. [...] > diff --git a/arch/arm/mach-omap2/board-generic.c b/arch/arm/mach-omap2/board-generic.c > index d587560..bf67781 100644 > --- a/arch/arm/mach-omap2/board-generic.c > +++ b/arch/arm/mach-omap2/board-generic.c > @@ -66,8 +66,11 @@ static struct of_device_id intc_match[] __initdata = { > static void __init omap_generic_init(void) > { > struct device_node *node = of_find_matching_node(NULL, intc_match); > - if (node) > - irq_domain_add_simple(node, 0); > + if (node) { > + struct irq_domain *domain; > + domain = irq_domain_add_simple(node, 0, INTCPS_NR_IRQS); The number of interrupts will depend on the OMAP generation. That one is just valid for the 3430 INTC controller. Since the previous code was using zero, I guess that using 0 there should be fine. Moreover, that piece of code should not exist anymore on 3.3 if the series I sent last month to leverage Rob's DT interrupt init is merged [1]. I've just ping Rob and Grant on that series to get a status. Regards, Benoit [1] http://www.spinics.net/lists/linux-omap/msg62124.html ^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] irqdomain: Initialize number of IRQs for simple domains 2012-01-06 16:58 ` [PATCH] irqdomain: Initialize number of IRQs for simple domains Cousson, Benoit @ 2012-01-09 9:03 ` Thierry Reding 0 siblings, 0 replies; 2+ messages in thread From: Thierry Reding @ 2012-01-09 9:03 UTC (permalink / raw) To: Cousson, Benoit Cc: devicetree-discuss, Tony Lindgren, Catalin Marinas, Daniel Walker, Russell King, Uwe Kleine-König, David Brown, open list:ARM/QUALCOMM MSM..., Rob Herring, Barry Song, Thomas Gleixner, OMAP SUPPORT, Andrew Victor, open list:ARM/ATMEL AT91RM9..., open list, Bryan Huntsman, Richard Zhao, Sascha Hauer, David Woodhouse [-- Attachment #1: Type: text/plain, Size: 1528 bytes --] * Cousson, Benoit wrote: > Hi Thierry, > > On 1/6/2012 3:28 PM, Thierry Reding wrote: > >The irq_domain_add() function needs the number of interrupts in the > >domain to properly initialize them. In addition the allocated domain > >is now returned by the irq_domain_{add,generate}_simple() helpers. > > [...] > > >diff --git a/arch/arm/mach-omap2/board-generic.c b/arch/arm/mach-omap2/board-generic.c > >index d587560..bf67781 100644 > >--- a/arch/arm/mach-omap2/board-generic.c > >+++ b/arch/arm/mach-omap2/board-generic.c > >@@ -66,8 +66,11 @@ static struct of_device_id intc_match[] __initdata = { > > static void __init omap_generic_init(void) > > { > > struct device_node *node = of_find_matching_node(NULL, intc_match); > >- if (node) > >- irq_domain_add_simple(node, 0); > >+ if (node) { > >+ struct irq_domain *domain; > >+ domain = irq_domain_add_simple(node, 0, INTCPS_NR_IRQS); > > The number of interrupts will depend on the OMAP generation. That > one is just valid for the 3430 INTC controller. > Since the previous code was using zero, I guess that using 0 there > should be fine. > > Moreover, that piece of code should not exist anymore on 3.3 if the > series I sent last month to leverage Rob's DT interrupt init is > merged [1]. > > I've just ping Rob and Grant on that series to get a status. Okay, so I guess we should wait for you patch to go in first and I'll update this patch on top of that. I assume we can coordinate things in linux-next? Thierry [-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --] ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-01-09 9:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1325860112-22051-1-git-send-email-thierry.reding@avionic-design.de>
2012-01-06 16:58 ` [PATCH] irqdomain: Initialize number of IRQs for simple domains Cousson, Benoit
2012-01-09 9:03 ` Thierry Reding
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox