From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kukjin Kim Subject: RE: [PATCH] DT: if dt is available don't use s3c_arch_init Date: Thu, 26 Sep 2013 12:56:37 +0900 Message-ID: <029601ceba6c$661bdf20$32539d60$%kim@samsung.com> References: <1379931289-29384-1-git-send-email-m.krawczuk@partner.samsung.com> <2025079.MVbFYJdokX@amdc1227> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from mailout2.samsung.com ([203.254.224.25]:64713 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751172Ab3IZD4j (ORCPT ); Wed, 25 Sep 2013 23:56:39 -0400 In-reply-to: <2025079.MVbFYJdokX@amdc1227> Content-language: ko Sender: linux-samsung-soc-owner@vger.kernel.org List-Id: linux-samsung-soc@vger.kernel.org To: 'Tomasz Figa' , 'Mateusz Krawczuk' 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' 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 > > Signed-off-by: Kyungmin Park > > --- > > 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 > > #include > > #include > > +#include > > #include > > #include > > #include > > @@ -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