All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pavel Machek <pavel@ucw.cz>
To: Tony Lindgren <tony@atomide.com>
Cc: "Pali Rohár" <pali.rohar@gmail.com>,
	"Aaro Koskinen" <aaro.koskinen@iki.fi>,
	linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH] ARM: OMAP2+: Warn about deprecated legacy booting mode
Date: Thu, 27 Nov 2014 12:18:36 +0100	[thread overview]
Message-ID: <20141127111836.GA20159@amd> (raw)
In-Reply-To: <20141126200806.GO2817@atomide.com>

> 8< ------------
> From: Tony Lindgren <tony@atomide.com>
> Date: Wed, 26 Nov 2014 11:55:29 -0800
> Subject: [PATCH] ARM: OMAP2+: Fix n900 board name for legacy user space
> 
> N900 legacy user space apps need the board name in
> /proc/cpuinfo to work properly for the Hardware entry.
> 
> For other boards this should not be an issues and they
> can use the generic Hardware entry.
> 
> Let's fix the issue by adding a custom DT_MACHINE_START
> for n900.
> 
> Signed-off-by: Tony Lindgren <tony@atomide.com>

Acked-by: Pavel Machek <pavel@ucw.cz>

Thanks!
								Pavel

> 
> --- a/arch/arm/mach-omap2/board-generic.c
> +++ b/arch/arm/mach-omap2/board-generic.c
> @@ -118,6 +118,24 @@ MACHINE_END
>  #endif
>  
>  #ifdef CONFIG_ARCH_OMAP3
> +/* Some boards need board name for legacy userspace in /proc/cpuinfo */
> +static const char *const n900_boards_compat[] __initconst = {
> +	"nokia,omap3-n900",
> +	NULL,
> +};
> +
> +DT_MACHINE_START(OMAP3_N900_DT, "Nokia RX-51 board")
> +	.reserve	= omap_reserve,
> +	.map_io		= omap3_map_io,
> +	.init_early	= omap3430_init_early,
> +	.init_machine	= omap_generic_init,
> +	.init_late	= omap3_init_late,
> +	.init_time	= omap3_sync32k_timer_init,
> +	.dt_compat	= n900_boards_compat,
> +	.restart	= omap3xxx_restart,
> +MACHINE_END
> +
> +/* Generic omap3 boards, most boards can use these */
>  static const char *const omap3_boards_compat[] __initconst = {
>  	"ti,omap3430",
>  	"ti,omap3",

-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

WARNING: multiple messages have this Message-ID (diff)
From: pavel@ucw.cz (Pavel Machek)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ARM: OMAP2+: Warn about deprecated legacy booting mode
Date: Thu, 27 Nov 2014 12:18:36 +0100	[thread overview]
Message-ID: <20141127111836.GA20159@amd> (raw)
In-Reply-To: <20141126200806.GO2817@atomide.com>

> 8< ------------
> From: Tony Lindgren <tony@atomide.com>
> Date: Wed, 26 Nov 2014 11:55:29 -0800
> Subject: [PATCH] ARM: OMAP2+: Fix n900 board name for legacy user space
> 
> N900 legacy user space apps need the board name in
> /proc/cpuinfo to work properly for the Hardware entry.
> 
> For other boards this should not be an issues and they
> can use the generic Hardware entry.
> 
> Let's fix the issue by adding a custom DT_MACHINE_START
> for n900.
> 
> Signed-off-by: Tony Lindgren <tony@atomide.com>

Acked-by: Pavel Machek <pavel@ucw.cz>

Thanks!
								Pavel

> 
> --- a/arch/arm/mach-omap2/board-generic.c
> +++ b/arch/arm/mach-omap2/board-generic.c
> @@ -118,6 +118,24 @@ MACHINE_END
>  #endif
>  
>  #ifdef CONFIG_ARCH_OMAP3
> +/* Some boards need board name for legacy userspace in /proc/cpuinfo */
> +static const char *const n900_boards_compat[] __initconst = {
> +	"nokia,omap3-n900",
> +	NULL,
> +};
> +
> +DT_MACHINE_START(OMAP3_N900_DT, "Nokia RX-51 board")
> +	.reserve	= omap_reserve,
> +	.map_io		= omap3_map_io,
> +	.init_early	= omap3430_init_early,
> +	.init_machine	= omap_generic_init,
> +	.init_late	= omap3_init_late,
> +	.init_time	= omap3_sync32k_timer_init,
> +	.dt_compat	= n900_boards_compat,
> +	.restart	= omap3xxx_restart,
> +MACHINE_END
> +
> +/* Generic omap3 boards, most boards can use these */
>  static const char *const omap3_boards_compat[] __initconst = {
>  	"ti,omap3430",
>  	"ti,omap3",

-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

  parent reply	other threads:[~2014-11-27 11:18 UTC|newest]

Thread overview: 95+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-27 20:00 [PATCH] ARM: OMAP2+: Warn about deprecated legacy booting mode Tony Lindgren
2014-10-27 20:00 ` Tony Lindgren
2014-10-27 23:01 ` Aaro Koskinen
2014-10-27 23:01   ` Aaro Koskinen
2014-10-28 22:12   ` Tony Lindgren
2014-10-28 22:12     ` Tony Lindgren
2014-10-29 13:43     ` Nishanth Menon
2014-10-29 13:43       ` Nishanth Menon
2014-10-29 18:59       ` Sebastian Reichel
2014-10-29 18:59         ` Sebastian Reichel
2014-10-29 19:39         ` Tony Lindgren
2014-10-29 19:39           ` Tony Lindgren
2014-10-29 21:45           ` Nishanth Menon
2014-10-29 21:45             ` Nishanth Menon
2014-10-29 22:15             ` Tony Lindgren
2014-10-29 22:15               ` Tony Lindgren
2014-10-29 22:31             ` Aaro Koskinen
2014-10-29 22:31               ` Aaro Koskinen
2014-10-30 13:55               ` Nishanth Menon
2014-10-30 13:55                 ` Nishanth Menon
2014-10-29 23:07           ` Sebastian Reichel
2014-10-29 23:07             ` Sebastian Reichel
2014-10-29 23:11           ` Aaro Koskinen
2014-10-29 23:11             ` Aaro Koskinen
2014-10-29 23:54             ` Javier Martinez Canillas
2014-10-29 23:54               ` Javier Martinez Canillas
2014-11-26 17:28   ` Pavel Machek
2014-11-26 17:28     ` Pavel Machek
2014-11-26 18:19     ` Tony Lindgren
2014-11-26 18:19       ` Tony Lindgren
2014-11-26 18:57       ` Pali Rohár
2014-11-26 18:57         ` Pali Rohár
2014-11-26 19:10         ` Tony Lindgren
2014-11-26 19:10           ` Tony Lindgren
2014-11-26 19:22           ` Pali Rohár
2014-11-26 19:22             ` Pali Rohár
2014-11-26 20:08             ` Tony Lindgren
2014-11-26 20:08               ` Tony Lindgren
2014-11-26 23:01               ` Pali Rohár
2014-11-26 23:01                 ` Pali Rohár
2014-11-26 23:14                 ` Tony Lindgren
2014-11-26 23:14                   ` Tony Lindgren
2014-11-26 23:38                   ` Pali Rohár
2014-11-26 23:38                     ` Pali Rohár
2014-11-27  1:12                     ` Tony Lindgren
2014-11-27  1:12                       ` Tony Lindgren
2014-11-27 11:32                       ` Pali Rohár
2014-11-27 11:32                         ` Pali Rohár
2014-11-28 20:27                         ` Tony Lindgren
2014-11-28 20:27                           ` Tony Lindgren
2014-11-28 21:41                           ` Pali Rohár
2014-11-28 21:41                             ` Pali Rohár
2014-11-28 22:24                             ` Tony Lindgren
2014-11-28 22:24                               ` Tony Lindgren
2014-11-28 22:42                               ` Pali Rohár
2014-11-28 22:42                                 ` Pali Rohár
2014-12-04 18:34                               ` Pali Rohár
2014-12-04 18:34                                 ` Pali Rohár
2014-12-04 18:40                                 ` Tony Lindgren
2014-12-04 18:40                                   ` Tony Lindgren
2014-12-04 19:01                                   ` Pali Rohár
2014-12-04 19:01                                     ` Pali Rohár
2014-11-28 22:26                             ` Aaro Koskinen
2014-11-28 22:26                               ` Aaro Koskinen
2014-11-28 22:43                               ` Pali Rohár
2014-11-28 22:43                                 ` Pali Rohár
2014-11-28 22:41                             ` Aaro Koskinen
2014-11-28 22:41                               ` Aaro Koskinen
2014-11-28 22:49                               ` Pali Rohár
2014-11-28 22:49                                 ` Pali Rohár
2014-11-28 22:54                                 ` Aaro Koskinen
2014-11-28 22:54                                   ` Aaro Koskinen
2014-12-02 21:28                           ` Pali Rohár
2014-12-02 21:28                             ` Pali Rohár
2014-12-03 16:52                           ` Pavel Machek
2014-12-03 16:52                             ` Pavel Machek
2014-12-03 22:22                             ` Dmitry Eremin-Solenikov
2014-11-27 11:18               ` Pavel Machek [this message]
2014-11-27 11:18                 ` Pavel Machek
2014-10-31 19:30 ` Russell King - ARM Linux
2014-10-31 19:30   ` Russell King - ARM Linux
2014-10-31 21:13   ` Tony Lindgren
2014-10-31 21:13     ` Tony Lindgren
2014-10-31 22:12     ` Tony Lindgren
2014-10-31 22:12       ` Tony Lindgren
2014-10-31 22:33     ` Russell King - ARM Linux
2014-10-31 22:33       ` Russell King - ARM Linux
2014-10-31 23:37       ` Tony Lindgren
2014-10-31 23:37         ` Tony Lindgren
2014-11-01  0:44         ` Russell King - ARM Linux
2014-11-01  0:44           ` Russell King - ARM Linux
2014-11-01 21:57           ` Tony Lindgren
2014-11-01 21:57             ` Tony Lindgren
2014-11-02 18:15             ` Tony Lindgren
2014-11-02 18:15               ` Tony Lindgren

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=20141127111836.GA20159@amd \
    --to=pavel@ucw.cz \
    --cc=aaro.koskinen@iki.fi \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=pali.rohar@gmail.com \
    --cc=tony@atomide.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.