From: Thierry Reding <thierry.reding@avionic-design.de>
To: "Cousson, Benoit" <b-cousson@ti.com>
Cc: devicetree-discuss@lists.ozlabs.org,
"Tony Lindgren" <tony@atomide.com>,
"Catalin Marinas" <catalin.marinas@arm.com>,
"Daniel Walker" <dwalker@fifo99.com>,
"Russell King" <linux@arm.linux.org.uk>,
"Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>,
"David Brown" <davidb@codeaurora.org>,
"open list:ARM/QUALCOMM MSM..." <linux-arm-msm@vger.kernel.org>,
"Rob Herring" <rob.herring@calxeda.com>,
"Barry Song" <baohua.song@csr.com>,
"Thomas Gleixner" <tglx@linutronix.de>,
"OMAP SUPPORT" <linux-omap@vger.kernel.org>,
"Andrew Victor" <linux@maxim.org.za>,
"open list:ARM/ATMEL AT91RM9..."
<linux-arm-kernel@lists.infradead.org>,
"open list" <linux-kernel@vger.kernel.org>,
"Bryan Huntsman" <bryanh@codeaurora.org>,
"Richard Zhao" <richard.zhao@freescale.com>,
"Sascha Hauer" <kernel@pengutronix.de>,
"David Woodhouse" <dwmw2@infradead.org>
Subject: Re: [PATCH] irqdomain: Initialize number of IRQs for simple domains
Date: Mon, 9 Jan 2012 10:03:12 +0100 [thread overview]
Message-ID: <20120109090311.GA10040@avionic-0098.mockup.avionic-design.de> (raw)
In-Reply-To: <4F072843.6050306@ti.com>
[-- 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 --]
WARNING: multiple messages have this Message-ID (diff)
From: thierry.reding@avionic-design.de (Thierry Reding)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] irqdomain: Initialize number of IRQs for simple domains
Date: Mon, 9 Jan 2012 10:03:12 +0100 [thread overview]
Message-ID: <20120109090311.GA10040@avionic-0098.mockup.avionic-design.de> (raw)
In-Reply-To: <4F072843.6050306@ti.com>
* 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20120109/1b0fd953/attachment.sig>
WARNING: multiple messages have this Message-ID (diff)
From: Thierry Reding <thierry.reding@avionic-design.de>
To: "Cousson, Benoit" <b-cousson@ti.com>
Cc: devicetree-discuss@lists.ozlabs.org,
"Tony Lindgren" <tony@atomide.com>,
"Catalin Marinas" <catalin.marinas@arm.com>,
"Daniel Walker" <dwalker@fifo99.com>,
"Russell King" <linux@arm.linux.org.uk>,
"Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>,
"David Brown" <davidb@codeaurora.org>,
"open list:ARM/QUALCOMM MSM..." <linux-arm-msm@vger.kernel.org>,
"Rob Herring" <rob.herring@calxeda.com>,
"Barry Song" <baohua.song@csr.com>,
"Thomas Gleixner" <tglx@linutronix.de>,
"open list": "OMAP SUPPORT" <linux-omap@vger.kernel.org>,
"Andrew Victor" <linux@maxim.org.za>,
"open list:ARM/ATMEL AT91RM9..."
<linux-arm-kernel@lists.infradead.org>,
"open list" <linux-kernel@vger.kernel.org>,
"Bryan Huntsman" <bryanh@codeaurora.org>,
"Richard Zhao" <richard.zhao@freescale.com>,
"Sascha Hauer" <kernel@pengutronix.de>,
"David Woodhouse" <dwmw2@infradead.org>;
Subject: Re: [PATCH] irqdomain: Initialize number of IRQs for simple domains
Date: Mon, 9 Jan 2012 10:03:12 +0100 [thread overview]
Message-ID: <20120109090311.GA10040@avionic-0098.mockup.avionic-design.de> (raw)
In-Reply-To: <4F072843.6050306@ti.com>
[-- 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 --]
next prev parent reply other threads:[~2012-01-09 9:03 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-06 14:28 [PATCH] irqdomain: Initialize number of IRQs for simple domains Thierry Reding
2012-01-06 14:28 ` Thierry Reding
2012-01-06 16:07 ` David Brown
2012-01-06 16:07 ` David Brown
[not found] ` <20120106160744.GA7687-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>
2012-01-06 16:12 ` Thierry Reding
2012-01-06 16:12 ` Thierry Reding
2012-01-06 16:26 ` Rob Herring
2012-01-06 16:26 ` Rob Herring
[not found] ` <4F0720A9.8070400-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2012-01-06 18:52 ` David Brown
2012-01-06 18:52 ` David Brown
[not found] ` <1325860112-22051-1-git-send-email-thierry.reding-RM9K5IK7kjKj5M59NBduVrNAH6kLmebB@public.gmane.org>
2012-01-06 14:36 ` Nicolas Ferre
2012-01-06 14:36 ` Nicolas Ferre
2012-01-06 15:04 ` Grant Likely
2012-01-06 15:04 ` Grant Likely
2012-01-06 16:20 ` Thierry Reding
2012-01-06 16:20 ` Thierry Reding
[not found] ` <20120106162016.GB5593-RM9K5IK7kjIQXX3q8xo1gnVAuStQJXxyR5q1nwbD4aMs9pC9oP6+/A@public.gmane.org>
2012-01-06 21:34 ` Grant Likely
2012-01-06 21:34 ` Grant Likely
[not found] ` <20120106213422.GF7457-e0URQFbLeQY2iJbIjFUEsiwD8/FfD2ys@public.gmane.org>
2012-01-07 11:40 ` Thierry Reding
2012-01-07 11:40 ` Thierry Reding
2012-01-06 16:58 ` Cousson, Benoit
2012-01-06 16:58 ` Cousson, Benoit
2012-01-06 16:58 ` Cousson, Benoit
2012-01-09 9:03 ` Thierry Reding [this message]
2012-01-09 9:03 ` Thierry Reding
2012-01-09 9:03 ` Thierry Reding
2012-01-07 5:58 ` Shawn Guo
2012-01-07 5:58 ` Shawn Guo
[not found] ` <20120107055817.GG4790-rvtDTF3kK1ictlrPMvKcciBecyulp+rMXqFh9Ls21Oc@public.gmane.org>
2012-01-07 11:47 ` Thierry Reding
2012-01-07 11:47 ` Thierry Reding
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120109090311.GA10040@avionic-0098.mockup.avionic-design.de \
--to=thierry.reding@avionic-design.de \
--cc=b-cousson@ti.com \
--cc=baohua.song@csr.com \
--cc=bryanh@codeaurora.org \
--cc=catalin.marinas@arm.com \
--cc=davidb@codeaurora.org \
--cc=devicetree-discuss@lists.ozlabs.org \
--cc=dwalker@fifo99.com \
--cc=dwmw2@infradead.org \
--cc=kernel@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
--cc=linux@maxim.org.za \
--cc=richard.zhao@freescale.com \
--cc=rob.herring@calxeda.com \
--cc=tglx@linutronix.de \
--cc=tony@atomide.com \
--cc=u.kleine-koenig@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.