From: Thierry Reding <thierry.reding@avionic-design.de>
To: Jamie Iles <jamie@jamieiles.com>
Cc: devicetree-discuss@lists.ozlabs.org,
"Andrew Victor" <linux@maxim.org.za>,
"Nicolas Ferre" <nicolas.ferre@atmel.com>,
"Jean-Christophe Plagniol-Villard" <plagnioj@jcrosoft.com>,
"Russell King" <linux@arm.linux.org.uk>,
"Sascha Hauer" <kernel@pengutronix.de>,
"Shawn Guo" <shawn.guo@linaro.org>,
"David Brown" <davidb@codeaurora.org>,
"Daniel Walker" <dwalker@fifo99.com>,
"Bryan Huntsman" <bryanh@codeaurora.org>,
"Tony Lindgren" <tony@atomide.com>,
"Barry Song" <baohua.song@csr.com>,
"Thomas Gleixner" <tglx@linutronix.de>,
"Catalin Marinas" <catalin.marinas@arm.com>,
"David Woodhouse" <dwmw2@infradead.org>,
"Grant Likely" <grant.likely@secretlab.ca>,
"Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>,
"Rob Herring" <rob.herring@calxeda.com>,
"open list:ARM/ATMEL AT91RM9..."
<linux-arm-kernel@lists.infradead.org>,
"open list" <linux-kernel@vger.kernel.org>, "open list":;
Subject: Re: [PATCH v2] irqdomain: Initialize number of IRQs for simple domains
Date: Tue, 10 Jan 2012 11:44:35 +0100 [thread overview]
Message-ID: <20120110104435.GA10617@avionic-0098.mockup.avionic-design.de> (raw)
In-Reply-To: <20120110103905.GC3226@page>
[-- Attachment #1: Type: text/plain, Size: 2125 bytes --]
* Jamie Iles wrote:
> Hi Thierry,
>
> On Tue, Jan 10, 2012 at 11:24:11AM +0100, 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.
> >
> > Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
> > Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
> > Acked-by: David Brown <davidb@codeaurora.org>
> > ---
> > Note: This patch should not be applied yet. There is a conflict with a
> > pending patch[0] by Benoit Cousson that will obsolete the OMAP2
> > hunk in this patch.
> >
> > [0]: http://www.spinics.net/lists/linux-omap/msg62124.html
>
> I also have a patch in Russell's tracker to remove one of the calls for
> versatile (for the VIC) that is no longer needed.
Okay, I'll take a note. I guess it is okay for this patch to go in only after
the conflicting patches have all been applied. I'm assuming that sooner or
later those patches will land in linux-next and I can rebase this patch on
top, right?
> > diff --git a/arch/arm/mach-imx/imx51-dt.c b/arch/arm/mach-imx/imx51-dt.c
> > index e6bad17..811ce88 100644
> > --- a/arch/arm/mach-imx/imx51-dt.c
> > +++ b/arch/arm/mach-imx/imx51-dt.c
> > @@ -47,7 +47,12 @@ static const struct of_dev_auxdata imx51_auxdata_lookup[] __initconst = {
> > static int __init imx51_tzic_add_irq_domain(struct device_node *np,
> > struct device_node *interrupt_parent)
> > {
> > - irq_domain_add_simple(np, 0);
> > + struct irq_domain *domain;
> > +
> > + domain = irq_domain_add_simple(np, 0, TZIC_NUM_IRQS);
> > + if (!domain)
> > + return -ENOMEM;
> > +
> > return 0;
> > }
>
> A real nit, but could this be written as:
>
> return irq_domain_add_simple(np, 0, TZIC_NUM_IRQS) ? 0 : -ENOMEM;
>
> to make it a little more concise (and the same for the others)? Not a
> big deal though, so either way:
>
> Reviewed-by: Jamie Iles <jamie@jamieiles.com>
Yes, I can do that.
Thanks,
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 v2] irqdomain: Initialize number of IRQs for simple domains
Date: Tue, 10 Jan 2012 11:44:35 +0100 [thread overview]
Message-ID: <20120110104435.GA10617@avionic-0098.mockup.avionic-design.de> (raw)
In-Reply-To: <20120110103905.GC3226@page>
* Jamie Iles wrote:
> Hi Thierry,
>
> On Tue, Jan 10, 2012 at 11:24:11AM +0100, 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.
> >
> > Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
> > Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
> > Acked-by: David Brown <davidb@codeaurora.org>
> > ---
> > Note: This patch should not be applied yet. There is a conflict with a
> > pending patch[0] by Benoit Cousson that will obsolete the OMAP2
> > hunk in this patch.
> >
> > [0]: http://www.spinics.net/lists/linux-omap/msg62124.html
>
> I also have a patch in Russell's tracker to remove one of the calls for
> versatile (for the VIC) that is no longer needed.
Okay, I'll take a note. I guess it is okay for this patch to go in only after
the conflicting patches have all been applied. I'm assuming that sooner or
later those patches will land in linux-next and I can rebase this patch on
top, right?
> > diff --git a/arch/arm/mach-imx/imx51-dt.c b/arch/arm/mach-imx/imx51-dt.c
> > index e6bad17..811ce88 100644
> > --- a/arch/arm/mach-imx/imx51-dt.c
> > +++ b/arch/arm/mach-imx/imx51-dt.c
> > @@ -47,7 +47,12 @@ static const struct of_dev_auxdata imx51_auxdata_lookup[] __initconst = {
> > static int __init imx51_tzic_add_irq_domain(struct device_node *np,
> > struct device_node *interrupt_parent)
> > {
> > - irq_domain_add_simple(np, 0);
> > + struct irq_domain *domain;
> > +
> > + domain = irq_domain_add_simple(np, 0, TZIC_NUM_IRQS);
> > + if (!domain)
> > + return -ENOMEM;
> > +
> > return 0;
> > }
>
> A real nit, but could this be written as:
>
> return irq_domain_add_simple(np, 0, TZIC_NUM_IRQS) ? 0 : -ENOMEM;
>
> to make it a little more concise (and the same for the others)? Not a
> big deal though, so either way:
>
> Reviewed-by: Jamie Iles <jamie@jamieiles.com>
Yes, I can do that.
Thanks,
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/20120110/0f052ec4/attachment.sig>
WARNING: multiple messages have this Message-ID (diff)
From: Thierry Reding <thierry.reding@avionic-design.de>
To: Jamie Iles <jamie@jamieiles.com>
Cc: devicetree-discuss@lists.ozlabs.org,
"Andrew Victor" <linux@maxim.org.za>,
"Nicolas Ferre" <nicolas.ferre@atmel.com>,
"Jean-Christophe Plagniol-Villard" <plagnioj@jcrosoft.com>,
"Russell King" <linux@arm.linux.org.uk>,
"Sascha Hauer" <kernel@pengutronix.de>,
"Shawn Guo" <shawn.guo@linaro.org>,
"David Brown" <davidb@codeaurora.org>,
"Daniel Walker" <dwalker@fifo99.com>,
"Bryan Huntsman" <bryanh@codeaurora.org>,
"Tony Lindgren" <tony@atomide.com>,
"Barry Song" <baohua.song@csr.com>,
"Thomas Gleixner" <tglx@linutronix.de>,
"Catalin Marinas" <catalin.marinas@arm.com>,
"David Woodhouse" <dwmw2@infradead.org>,
"Grant Likely" <grant.likely@secretlab.ca>,
"Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>,
"Rob Herring" <rob.herring@calxeda.com>,
"open list:ARM/ATMEL AT91RM9..."
<linux-arm-kernel@lists.infradead.org>,
"open list" <linux-kernel@vger.kernel.org>,
"open list:ARM/QUALCOMM MSM..." <linux-arm-msm@vger.kernel.org>,
"open list:OMAP SUPPORT" <linux-omap@vger.kernel.org>
Subject: Re: [PATCH v2] irqdomain: Initialize number of IRQs for simple domains
Date: Tue, 10 Jan 2012 11:44:35 +0100 [thread overview]
Message-ID: <20120110104435.GA10617@avionic-0098.mockup.avionic-design.de> (raw)
In-Reply-To: <20120110103905.GC3226@page>
[-- Attachment #1: Type: text/plain, Size: 2125 bytes --]
* Jamie Iles wrote:
> Hi Thierry,
>
> On Tue, Jan 10, 2012 at 11:24:11AM +0100, 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.
> >
> > Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
> > Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
> > Acked-by: David Brown <davidb@codeaurora.org>
> > ---
> > Note: This patch should not be applied yet. There is a conflict with a
> > pending patch[0] by Benoit Cousson that will obsolete the OMAP2
> > hunk in this patch.
> >
> > [0]: http://www.spinics.net/lists/linux-omap/msg62124.html
>
> I also have a patch in Russell's tracker to remove one of the calls for
> versatile (for the VIC) that is no longer needed.
Okay, I'll take a note. I guess it is okay for this patch to go in only after
the conflicting patches have all been applied. I'm assuming that sooner or
later those patches will land in linux-next and I can rebase this patch on
top, right?
> > diff --git a/arch/arm/mach-imx/imx51-dt.c b/arch/arm/mach-imx/imx51-dt.c
> > index e6bad17..811ce88 100644
> > --- a/arch/arm/mach-imx/imx51-dt.c
> > +++ b/arch/arm/mach-imx/imx51-dt.c
> > @@ -47,7 +47,12 @@ static const struct of_dev_auxdata imx51_auxdata_lookup[] __initconst = {
> > static int __init imx51_tzic_add_irq_domain(struct device_node *np,
> > struct device_node *interrupt_parent)
> > {
> > - irq_domain_add_simple(np, 0);
> > + struct irq_domain *domain;
> > +
> > + domain = irq_domain_add_simple(np, 0, TZIC_NUM_IRQS);
> > + if (!domain)
> > + return -ENOMEM;
> > +
> > return 0;
> > }
>
> A real nit, but could this be written as:
>
> return irq_domain_add_simple(np, 0, TZIC_NUM_IRQS) ? 0 : -ENOMEM;
>
> to make it a little more concise (and the same for the others)? Not a
> big deal though, so either way:
>
> Reviewed-by: Jamie Iles <jamie@jamieiles.com>
Yes, I can do that.
Thanks,
Thierry
[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]
next prev parent reply other threads:[~2012-01-10 10:44 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-10 10:24 [PATCH v2] irqdomain: Initialize number of IRQs for simple domains Thierry Reding
2012-01-10 10:24 ` Thierry Reding
[not found] ` <1326191059-26411-1-git-send-email-thierry.reding-RM9K5IK7kjKj5M59NBduVrNAH6kLmebB@public.gmane.org>
2012-01-10 10:39 ` Jamie Iles
2012-01-10 10:39 ` Jamie Iles
2012-01-10 10:44 ` Thierry Reding [this message]
2012-01-10 10:44 ` Thierry Reding
2012-01-10 10:44 ` Thierry Reding
2012-01-10 15:41 ` Shawn Guo
2012-01-10 15:41 ` Shawn Guo
2012-01-10 15:41 ` Shawn Guo
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=20120110104435.GA10617@avionic-0098.mockup.avionic-design.de \
--to=thierry.reding@avionic-design.de \
--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=grant.likely@secretlab.ca \
--cc=jamie@jamieiles.com \
--cc=kernel@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
--cc=linux@maxim.org.za \
--cc=nicolas.ferre@atmel.com \
--cc=plagnioj@jcrosoft.com \
--cc=rob.herring@calxeda.com \
--cc=shawn.guo@linaro.org \
--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.