From: Arnd Bergmann <arnd@arndb.de>
To: Tomasz Figa <t.figa@samsung.com>
Cc: Marc Zyngier <marc.zyngier@arm.com>,
Tomasz Figa <tomasz.figa@gmail.com>,
"linux-samsung-soc@vger.kernel.org"
<linux-samsung-soc@vger.kernel.org>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
Kukjin Kim <kgene.kim@samsung.com>,
Olof Johansson <olof@lixom.net>, Mark Brown <broonie@kernel.org>,
"rob.herring@calxeda.com" <rob.herring@calxeda.com>,
"grant.likely@linaro.org" <grant.likely@linaro.org>,
Benoit Cousson <benoit.cousson@linaro.org>,
"devicetree-discuss@lists.ozlabs.org"
<devicetree-discuss@lists.ozlabs.org>,
Jason Cooper <jason@lakedaemon.net>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Nicolas Pitre <nico@fluxnic.net>,
Russell King <linux@arm.linux.org.uk>,
Stephen Warren <swarren@wwwdotorg.org>,
Thomas Gleixner <tglx@linutronix.de>,
Will Deacon <Will.Deacon@arm.com>
Subject: Re: [PATCH v6 4/8] ARM: Add .init_platform() callback to machine descriptor
Date: Fri, 21 Jun 2013 16:12:15 +0200 [thread overview]
Message-ID: <201306211612.15508.arnd@arndb.de> (raw)
In-Reply-To: <72209947.cQvP4jsDBz@amdc1227>
On Friday 21 June 2013, Tomasz Figa wrote:
> > To me, this new hook is strictly equivalent to init_irq. What do we gain
> > exactly? I didn't think init_irq was going away...
> >
> > I know init_irq is not pretty, and we tend to overload it with other
> > stuff, but I don't really see the point of adding a new callback that
> > has the exact same properties.
>
> Well, it doesn't really give us any functional benefits.
>
> However in my opinion it looks much saner in case of DT-only platforms that
> don't need any specific IRQ initialization, but need to call some platform
> specific initialization routines, after memory management, but before
> anything else is initialized.
>
> This way irqchip_init() doesn't have to be explicitly called in platform
> code.
>
> Anyway, I don't have any strong opinion on this. If it is perfectly fine to
> abuse irqchip_init() for anything that must be done at this stage of boot,
> then I'm fine with this either and will modify the board file from further
> patch from this series to not rely on this change any more.
Your init_platform only has these two calls in it:
+ of_clk_init(NULL);
+ samsung_wdt_reset_of_init();
Presumably you need of_clk_init() for the watchdog to work. But do you actually
need to initialize the reset logic this early? Why not turn
samsung_wdt_reset_of_init into a standalone driver, or call it from init_machine?
I would actually like to call of_clk_init from common code at some point
between init_irq and init_time, although I'm not sure if some platforms
need it to be called before init_irq.
Arnd
WARNING: multiple messages have this Message-ID (diff)
From: arnd@arndb.de (Arnd Bergmann)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v6 4/8] ARM: Add .init_platform() callback to machine descriptor
Date: Fri, 21 Jun 2013 16:12:15 +0200 [thread overview]
Message-ID: <201306211612.15508.arnd@arndb.de> (raw)
In-Reply-To: <72209947.cQvP4jsDBz@amdc1227>
On Friday 21 June 2013, Tomasz Figa wrote:
> > To me, this new hook is strictly equivalent to init_irq. What do we gain
> > exactly? I didn't think init_irq was going away...
> >
> > I know init_irq is not pretty, and we tend to overload it with other
> > stuff, but I don't really see the point of adding a new callback that
> > has the exact same properties.
>
> Well, it doesn't really give us any functional benefits.
>
> However in my opinion it looks much saner in case of DT-only platforms that
> don't need any specific IRQ initialization, but need to call some platform
> specific initialization routines, after memory management, but before
> anything else is initialized.
>
> This way irqchip_init() doesn't have to be explicitly called in platform
> code.
>
> Anyway, I don't have any strong opinion on this. If it is perfectly fine to
> abuse irqchip_init() for anything that must be done at this stage of boot,
> then I'm fine with this either and will modify the board file from further
> patch from this series to not rely on this change any more.
Your init_platform only has these two calls in it:
+ of_clk_init(NULL);
+ samsung_wdt_reset_of_init();
Presumably you need of_clk_init() for the watchdog to work. But do you actually
need to initialize the reset logic this early? Why not turn
samsung_wdt_reset_of_init into a standalone driver, or call it from init_machine?
I would actually like to call of_clk_init from common code at some point
between init_irq and init_time, although I'm not sure if some platforms
need it to be called before init_irq.
Arnd
next prev parent reply other threads:[~2013-06-21 14:12 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-21 0:35 [PATCH v6 0/8] Initial Device Tree support for S3C64xx Tomasz Figa
2013-06-21 0:35 ` Tomasz Figa
2013-06-21 0:35 ` [PATCH v6 1/8] ARM: common: vic: Parse interrupt and resume masks from device tree Tomasz Figa
2013-06-21 0:35 ` Tomasz Figa
[not found] ` <1371774924-9224-1-git-send-email-tomasz.figa-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2013-06-21 0:35 ` [PATCH v6 2/8] ARM: s3c64xx: Bypass legacy initialization when booting with DT Tomasz Figa
2013-06-21 0:35 ` Tomasz Figa
2013-06-21 0:35 ` Tomasz Figa
2013-06-21 0:35 ` [PATCH v6 4/8] ARM: Add .init_platform() callback to machine descriptor Tomasz Figa
2013-06-21 0:35 ` Tomasz Figa
2013-06-21 0:35 ` Tomasz Figa
2013-06-21 10:24 ` Marc Zyngier
2013-06-21 10:24 ` Marc Zyngier
2013-06-21 11:14 ` Tomasz Figa
2013-06-21 11:14 ` Tomasz Figa
2013-06-21 14:12 ` Arnd Bergmann [this message]
2013-06-21 14:12 ` Arnd Bergmann
[not found] ` <201306211612.15508.arnd-r2nGTMty4D4@public.gmane.org>
2013-06-22 10:14 ` Tomasz Figa
2013-06-22 10:14 ` Tomasz Figa
2013-06-22 10:14 ` Tomasz Figa
2013-06-22 13:46 ` Tomasz Figa
2013-06-22 13:46 ` Tomasz Figa
2013-06-21 0:35 ` [PATCH v6 5/8] ARM: s3c64xx: Add board file for boot using Device Tree Tomasz Figa
2013-06-21 0:35 ` Tomasz Figa
2013-06-21 0:35 ` Tomasz Figa
2013-06-22 13:44 ` [PATCH v7 " Tomasz Figa
2013-06-22 13:44 ` Tomasz Figa
2013-06-21 0:35 ` [PATCH v6 3/8] gpio: samsung: Skip legacy GPIO registration if pinctrl-s3c64xx is present Tomasz Figa
2013-06-21 0:35 ` Tomasz Figa
2013-06-21 0:35 ` [PATCH v6 6/8] ARM: dts: Add basic dts include files for Samsung S3C64xx SoCs Tomasz Figa
2013-06-21 0:35 ` Tomasz Figa
2013-06-21 0:35 ` [PATCH v6 7/8] ARM: dts: Add dts file for S3C6410-based Mini6410 board Tomasz Figa
2013-06-21 0:35 ` Tomasz Figa
2013-06-21 0:35 ` [PATCH v6 8/8] ARM: dts: Add dts file for S3C6410-based SMDK6410 board Tomasz Figa
2013-06-21 0:35 ` Tomasz Figa
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=201306211612.15508.arnd@arndb.de \
--to=arnd@arndb.de \
--cc=Will.Deacon@arm.com \
--cc=benoit.cousson@linaro.org \
--cc=broonie@kernel.org \
--cc=devicetree-discuss@lists.ozlabs.org \
--cc=grant.likely@linaro.org \
--cc=jason@lakedaemon.net \
--cc=kgene.kim@samsung.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
--cc=marc.zyngier@arm.com \
--cc=nico@fluxnic.net \
--cc=olof@lixom.net \
--cc=rob.herring@calxeda.com \
--cc=swarren@wwwdotorg.org \
--cc=t.figa@samsung.com \
--cc=tglx@linutronix.de \
--cc=tomasz.figa@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 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.