From: cw00.choi@samsung.com (Chanwoo Choi)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ARM: Use 'model' property to set machine_name from Device Tree
Date: Thu, 14 Aug 2014 10:04:42 +0900 [thread overview]
Message-ID: <53EC0B2A.2070308@samsung.com> (raw)
In-Reply-To: <1404697991-32191-1-git-send-email-cw00.choi@samsung.com>
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.
Best Regards,
Chanwoo Choi
WARNING: multiple messages have this Message-ID (diff)
From: Chanwoo Choi <cw00.choi@samsung.com>
To: Chanwoo Choi <cw00.choi@samsung.com>
Cc: linux@arm.linux.org.uk, 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 10:04:42 +0900 [thread overview]
Message-ID: <53EC0B2A.2070308@samsung.com> (raw)
In-Reply-To: <1404697991-32191-1-git-send-email-cw00.choi@samsung.com>
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.
Best Regards,
Chanwoo Choi
next prev parent reply other threads:[~2014-08-14 1:04 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-07 1:53 [PATCH] ARM: Use 'model' property to set machine_name from Device Tree Chanwoo Choi
2014-07-07 1:53 ` Chanwoo Choi
2014-08-14 1:04 ` Chanwoo Choi [this message]
2014-08-14 1:04 ` Chanwoo Choi
2014-08-14 7:40 ` Russell King - ARM Linux
2014-08-14 7:40 ` Russell King - ARM Linux
2014-08-14 12:51 ` Catalin Marinas
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=53EC0B2A.2070308@samsung.com \
--to=cw00.choi@samsung.com \
--cc=linux-arm-kernel@lists.infradead.org \
/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.