linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH v2] irqdomain: Initialize number of IRQs for simple domains
       [not found] ` <20120110103905.GC3226@page>
@ 2012-01-10 10:44   ` Thierry Reding
  0 siblings, 0 replies; 2+ messages in thread
From: Thierry Reding @ 2012-01-10 10:44 UTC (permalink / raw)
  To: Jamie Iles
  Cc: devicetree-discuss, Andrew Victor, Nicolas Ferre,
	Jean-Christophe Plagniol-Villard, Russell King, Sascha Hauer,
	Shawn Guo, David Brown, Daniel Walker, Bryan Huntsman,
	Tony Lindgren, Barry Song, Thomas Gleixner, Catalin Marinas,
	David Woodhouse, Grant Likely, Uwe Kleine-König,
	Rob Herring, open list:ARM/ATMEL AT91RM9...,
	open list, open list:ARM/QUALCOMM MSM...,
	open list:OMAP SUPPORT

[-- 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 --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH v2] irqdomain: Initialize number of IRQs for simple domains
       [not found] <1326191059-26411-1-git-send-email-thierry.reding@avionic-design.de>
       [not found] ` <20120110103905.GC3226@page>
@ 2012-01-10 15:41 ` Shawn Guo
  1 sibling, 0 replies; 2+ messages in thread
From: Shawn Guo @ 2012-01-10 15:41 UTC (permalink / raw)
  To: Thierry Reding
  Cc: devicetree-discuss, Andrew Victor, Nicolas Ferre,
	Jean-Christophe Plagniol-Villard, Russell King, Sascha Hauer,
	David Brown, Daniel Walker, Bryan Huntsman, Tony Lindgren,
	Barry Song, Thomas Gleixner, Catalin Marinas, David Woodhouse,
	Grant Likely, Uwe Kleine-König, Rob Herring, Jamie Iles,
	open list:ARM/ATMEL AT91RM9...,
	open list, open list:ARM/QUALCOMM MSM...,
	open list:OMAP SUPPORT

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
> 
> Changes in v2:
>  - Don't use ERR_PTR, keep the WARN_ON(1) and return NULL as requested
>    by Grant Likely.
>  - Integrate i.MX cleanup patch by Shawn Guo.
> 
...
>  arch/arm/mach-imx/imx51-dt.c          |   13 +++++++++++--
>  arch/arm/mach-imx/imx53-dt.c          |   13 +++++++++++--
>  arch/arm/mach-imx/mach-imx6q.c        |    6 +++++-
...
>  arch/arm/plat-mxc/include/mach/irqs.h |   13 +++++++------
>  arch/arm/plat-mxc/tzic.c              |    2 --

Acked-by: Shawn Guo <shawn.guo@linaro.org>

Regards,
Shawn

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-01-10 15:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1326191059-26411-1-git-send-email-thierry.reding@avionic-design.de>
     [not found] ` <20120110103905.GC3226@page>
2012-01-10 10:44   ` [PATCH v2] irqdomain: Initialize number of IRQs for simple domains Thierry Reding
2012-01-10 15:41 ` Shawn Guo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).