mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Russell King - ARM Linux <linux@arm.linux.org.uk>
To: Chanwoo Choi <cw00.choi@samsung.com>
Cc: santosh.shilimkar@ti.com, will.deacon@arm.com,
	catalin.marinas@arm.com, akpm@linux-foundation.org,
	damm@opensource.se, ard.biesheuvel@linaro.org, olof@lixom.net,
	kyungmin.park@samsung.com, sw0312.kim@samsung.com,
	linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] ARM: Use 'model' property to set machine_name from Device Tree
Date: Thu, 14 Aug 2014 08:40:23 +0100	[thread overview]
Message-ID: <20140814074023.GR30401@n2100.arm.linux.org.uk> (raw)
In-Reply-To: <53EC0B2A.2070308@samsung.com>

On Thu, Aug 14, 2014 at 10:04:42AM +0900, Chanwoo Choi wrote:
> On 07/07/2014 10:53 AM, Chanwoo Choi wrote:
> > This patch use 'model' property from Device Tree to set machine_name.
> > The arm64 has already got the machine_name from Device Tree.
> > 
> > Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
> > ---
> >  arch/arm/kernel/setup.c | 4 ++++
> >  1 file changed, 4 insertions(+)
> > 
> > diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c
> > index 8a16ee5..698616f 100644
> > --- a/arch/arm/kernel/setup.c
> > +++ b/arch/arm/kernel/setup.c
> > @@ -878,7 +878,11 @@ void __init setup_arch(char **cmdline_p)
> >  	if (!mdesc)
> >  		mdesc = setup_machine_tags(__atags_pointer, __machine_arch_type);
> >  	machine_desc = mdesc;
> > +#if CONFIG_OF
> > +	machine_name = of_flat_dt_get_machine_name();
> > +#else
> >  	machine_name = mdesc->name;
> > +#endif
> >  
> >  	if (mdesc->reboot_mode != REBOOT_HARD)
> >  		reboot_mode = mdesc->reboot_mode;
> > 
> 
> Ping.

This has come up before, and the decision was against exposing this.

Thanks.

-- 
FTTC broadband for 0.8mile line: currently at 9.5Mbps down 400kbps up
according to speedtest.net.

  reply	other threads:[~2014-08-14  7:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-07  1:53 Chanwoo Choi
2014-08-14  1:04 ` Chanwoo Choi
2014-08-14  7:40   ` Russell King - ARM Linux [this message]
2014-08-14 12:51 ` Catalin Marinas

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=20140814074023.GR30401@n2100.arm.linux.org.uk \
    --to=linux@arm.linux.org.uk \
    --cc=akpm@linux-foundation.org \
    --cc=ard.biesheuvel@linaro.org \
    --cc=catalin.marinas@arm.com \
    --cc=cw00.choi@samsung.com \
    --cc=damm@opensource.se \
    --cc=kyungmin.park@samsung.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=olof@lixom.net \
    --cc=santosh.shilimkar@ti.com \
    --cc=sw0312.kim@samsung.com \
    --cc=will.deacon@arm.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®