From: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
To: Simon Horman <horms@verge.net.au>
Cc: linux-sh@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
devicetree-discuss@lists.ozlabs.org,
Magnus Damm <magnus.damm@gmail.com>
Subject: Re: [PATCH 3/7] ARM: sh7372: support mixed DT and board code interrupt controller init
Date: Mon, 17 Dec 2012 09:02:18 +0100 (CET) [thread overview]
Message-ID: <Pine.LNX.4.64.1212170900260.24007@axis700.grange> (raw)
In-Reply-To: <20121215075156.GD9073@verge.net.au>
Hi Simon
On Sat, 15 Dec 2012, Simon Horman wrote:
> On Fri, Dec 14, 2012 at 05:45:27PM +0100, Guennadi Liakhovetski wrote:
> > Extend DT interrupt controller initialisation to automatically fall back to
> > platform data based configuration, if booting without DT. This simplifies
> > implementing boards, capable of booting in either mode with a single kernel.
>
> Hi Guennadi,
>
> Do you have a case in mind where this will be used?
> My thinking until now has been that sh7372_init_irq_of() should only be called
> when a board is being initialised using DT.
As discussed in follow-ups to another patch from this series, the idea was
to only have one sh7372_init_irq(_of)() function exported, but it's not
too important, I'll drop this from v2.
Thanks
Guennadi
> > Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
> > ---
> > arch/arm/mach-shmobile/intc-sh7372.c | 6 ++++++
> > 1 files changed, 6 insertions(+), 0 deletions(-)
> >
> > diff --git a/arch/arm/mach-shmobile/intc-sh7372.c b/arch/arm/mach-shmobile/intc-sh7372.c
> > index c923518..9c13ecc 100644
> > --- a/arch/arm/mach-shmobile/intc-sh7372.c
> > +++ b/arch/arm/mach-shmobile/intc-sh7372.c
> > @@ -23,6 +23,7 @@
> > #include <linux/irq.h>
> > #include <linux/io.h>
> > #include <linux/sh_intc.h>
> > +#include <mach/common.h>
> > #include <mach/intc.h>
> > #include <mach/irqs.h>
> > #include <asm/mach-types.h>
> > @@ -629,6 +630,11 @@ static const struct of_device_id irq_of_match[] __initconst = {
> >
> > void __init sh7372_init_irq_of(void)
> > {
> > + if (!of_have_populated_dt()) {
> > + sh7372_init_irq();
> > + return;
> > + }
> > +
> > of_irq_init(irq_of_match);
> >
> > sh7372_init_intc(0xe6940000, 0xe6950000, 0xffd20000, 0xffd50000,
> > --
> > 1.7.2.5
> >
>
---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer
http://www.open-technology.de/
next prev parent reply other threads:[~2012-12-17 8:02 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-14 16:45 [PATCH 0/7] ARM: mackerel: extended DT support Guennadi Liakhovetski
2012-12-14 16:45 ` [PATCH 1/7] ARM: sh7372: add missing "#interrupt-cells" properties Guennadi Liakhovetski
2012-12-15 9:05 ` Simon Horman
2012-12-14 16:45 ` [PATCH 2/7] ARM: mackerel: include the correct .dtsi file Guennadi Liakhovetski
2012-12-15 8:37 ` Simon Horman
2012-12-14 16:45 ` [PATCH 3/7] ARM: sh7372: support mixed DT and board code interrupt controller init Guennadi Liakhovetski
2012-12-15 7:52 ` Simon Horman
2012-12-17 8:02 ` Guennadi Liakhovetski [this message]
2012-12-14 16:45 ` [PATCH 4/7] ARM: sh7372: add clock lookup entries for DT-based devices Guennadi Liakhovetski
2012-12-15 7:29 ` Grant Likely
2012-12-15 8:36 ` Simon Horman
2012-12-14 16:45 ` [PATCH 5/7] ARM: sh7372: allow boards supporting booting with or without DT Guennadi Liakhovetski
2012-12-15 8:05 ` Simon Horman
2012-12-17 8:07 ` Guennadi Liakhovetski
2012-12-14 16:45 ` [PATCH 6/7] ARM: mackerel: support " Guennadi Liakhovetski
2012-12-15 8:29 ` Simon Horman
2012-12-15 19:02 ` Guennadi Liakhovetski
2012-12-16 0:33 ` Simon Horman
2012-12-16 20:46 ` Grant Likely
2012-12-16 21:36 ` Guennadi Liakhovetski
2012-12-17 16:38 ` Grant Likely
2012-12-17 16:50 ` Guennadi Liakhovetski
2012-12-17 16:54 ` Grant Likely
2012-12-17 12:40 ` [PATCH v2 " Guennadi Liakhovetski
2012-12-17 17:00 ` Grant Likely
2012-12-14 16:45 ` [PATCH 7/7] ARM: mackerel: add more devices to DT Guennadi Liakhovetski
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=Pine.LNX.4.64.1212170900260.24007@axis700.grange \
--to=g.liakhovetski@gmx.de \
--cc=devicetree-discuss@lists.ozlabs.org \
--cc=horms@verge.net.au \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-sh@vger.kernel.org \
--cc=magnus.damm@gmail.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox