From: Kukjin Kim <kgene.kim@samsung.com>
To: "'Tomasz Figa'" <t.figa@samsung.com>,
"'Mateusz Krawczuk'" <m.krawczuk@partner.samsung.com>
Cc: ben-linux@fluff.org, linux@arm.linux.org.uk,
linux-arm-kernel@lists.infradead.org,
linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org,
m.szyprowski@samsung.com,
"'Kyungmin Park'" <kyungmin.park@samsung.com>
Subject: RE: [PATCH] DT: if dt is available don't use s3c_arch_init
Date: Thu, 26 Sep 2013 12:56:37 +0900 [thread overview]
Message-ID: <029601ceba6c$661bdf20$32539d60$%kim@samsung.com> (raw)
In-Reply-To: <2025079.MVbFYJdokX@amdc1227>
Tomasz Figa wrote:
>
> Hi Mateusz,
>
> On Monday 23 of September 2013 12:14:49 Mateusz Krawczuk wrote:
> > It prevents from executing platform code, when booting from device tree.
> >
> > Signed-off-by: Mateusz Krawczuk <m.krawczuk@partner.samsung.com>
> > Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
> > ---
> > arch/arm/plat-samsung/init.c | 3 +++
> > 1 file changed, 3 insertions(+)
> >
> > diff --git a/arch/arm/plat-samsung/init.c b/arch/arm/plat-samsung/init.c
> > index aa9511b..0ace02d 100644
> > --- a/arch/arm/plat-samsung/init.c
> > +++ b/arch/arm/plat-samsung/init.c
> > @@ -20,6 +20,7 @@
> > #include <linux/module.h>
> > #include <linux/interrupt.h>
> > #include <linux/ioport.h>
> > +#include <linux/of.h>
> > #include <linux/serial_core.h>
> > #include <linux/platform_device.h>
> > #include <linux/of.h>
> > @@ -152,6 +153,8 @@ static int __init s3c_arch_init(void)
> > {
> > int ret;
> >
> > + if (of_have_populated_dt())
> > + return 0;
>
> I'm not sure if this is the correct thing to do here (note platforms that
> still want this initialization to be handled, even when booting with DT).
>
> The DT case is already handled several lines below in if (cpu == NULL)
> check and if your platform requires this initialization not to happen you
> should assure it has cpu == NULL.
>
Yeah, I agree and I think this is not needed at this moment we could cleanup
the init functions later for Samsung SoCs though.
Thanks,
Kukjin
prev parent reply other threads:[~2013-09-26 3:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-23 10:14 Mateusz Krawczuk
2013-09-23 10:28 ` Sachin Kamat
2013-09-23 12:37 ` Tomasz Figa
2013-09-26 3:56 ` Kukjin Kim [this message]
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='029601ceba6c$661bdf20$32539d60$%kim@samsung.com' \
--to=kgene.kim@samsung.com \
--cc=ben-linux@fluff.org \
--cc=kyungmin.park@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=m.krawczuk@partner.samsung.com \
--cc=m.szyprowski@samsung.com \
--cc=t.figa@samsung.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
all inboxes | Powered by JetHome®