Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1330423 > unrolled thread
| Started by | Tony Lindgren <tony@atomide.com> |
|---|---|
| First post | 2016-02-09 17:20 +0100 |
| Last post | 2016-02-11 01:20 +0100 |
| Articles | 3 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [PATCH] ARM: RX51: Set system_rev from ATAGS Tony Lindgren <tony@atomide.com> - 2016-02-09 17:20 +0100
[PATCH v1] ARM: RX51: Set system_rev from ATAGS Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com> - 2016-02-10 19:30 +0100
Re: [PATCH v1] ARM: RX51: Set system_rev from ATAGS Tony Lindgren <tony@atomide.com> - 2016-02-11 01:20 +0100
| From | Tony Lindgren <tony@atomide.com> |
|---|---|
| Date | 2016-02-09 17:20 +0100 |
| Subject | Re: [PATCH] ARM: RX51: Set system_rev from ATAGS |
| Message-ID | <r0jbe-6vm-43@gated-at.bofh.it> |
* Pali Rohár <pali.rohar@gmail.com> [160208 13:11]: > > Tony, if you are going to take this patch, I would suggest to rename > function name rx51_system_rev to rx51_set_system_rev as it says what > function do (set system rev :-)). Ivaylo can change it when reposting as the patch description is missing. Regards, Tony
[toc] | [next] | [standalone]
| From | Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com> |
|---|---|
| Date | 2016-02-10 19:30 +0100 |
| Subject | [PATCH v1] ARM: RX51: Set system_rev from ATAGS |
| Message-ID | <r0HGy-5UV-11@gated-at.bofh.it> |
| In reply to | #1330423 |
This fixed a regression with DT boot compared to legacy boot.
Signed-off-by: Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com>
---
arch/arm/mach-omap2/board-generic.c | 22 +++++++++++++++++++++-
1 file changed, 21 insertions(+), 1 deletion(-)
diff --git a/arch/arm/mach-omap2/board-generic.c b/arch/arm/mach-omap2/board-generic.c
index 8098272..bab814d 100644
--- a/arch/arm/mach-omap2/board-generic.c
+++ b/arch/arm/mach-omap2/board-generic.c
@@ -18,6 +18,7 @@
#include <asm/setup.h>
#include <asm/mach/arch.h>
+#include <asm/system_info.h>
#include "common.h"
@@ -77,12 +78,31 @@ static const char *const n900_boards_compat[] __initconst = {
NULL,
};
+/* Set system_rev from atags */
+static void __init rx51_set_system_rev(const struct tag *tags)
+{
+ const struct tag *tag;
+
+ if (tags->hdr.tag != ATAG_CORE)
+ return;
+
+ for_each_tag(tag, tags) {
+ if (tag->hdr.tag == ATAG_REVISION) {
+ system_rev = tag->u.revision.rev;
+ break;
+ }
+ }
+}
+
/* Legacy userspace on Nokia N900 needs ATAGS exported in /proc/atags,
* save them while the data is still not overwritten
*/
static void __init rx51_reserve(void)
{
- save_atags((const struct tag *)(PAGE_OFFSET + 0x100));
+ const struct tag *tags = (const struct tag *)(PAGE_OFFSET + 0x100);
+
+ save_atags(tags);
+ rx51_set_system_rev(tags);
omap_reserve();
}
--
1.9.1
[toc] | [prev] | [next] | [standalone]
| From | Tony Lindgren <tony@atomide.com> |
|---|---|
| Date | 2016-02-11 01:20 +0100 |
| Subject | Re: [PATCH v1] ARM: RX51: Set system_rev from ATAGS |
| Message-ID | <r0N9h-13L-23@gated-at.bofh.it> |
| In reply to | #1331427 |
* Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com> [160210 10:24]:
> This fixed a regression with DT boot compared to legacy boot.
>
> Signed-off-by: Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com>
Thanks, applying into omap-for-v4.5/fixes with Pali's ack.
Regards,
Tony
> ---
> arch/arm/mach-omap2/board-generic.c | 22 +++++++++++++++++++++-
> 1 file changed, 21 insertions(+), 1 deletion(-)
>
> diff --git a/arch/arm/mach-omap2/board-generic.c b/arch/arm/mach-omap2/board-generic.c
> index 8098272..bab814d 100644
> --- a/arch/arm/mach-omap2/board-generic.c
> +++ b/arch/arm/mach-omap2/board-generic.c
> @@ -18,6 +18,7 @@
>
> #include <asm/setup.h>
> #include <asm/mach/arch.h>
> +#include <asm/system_info.h>
>
> #include "common.h"
>
> @@ -77,12 +78,31 @@ static const char *const n900_boards_compat[] __initconst = {
> NULL,
> };
>
> +/* Set system_rev from atags */
> +static void __init rx51_set_system_rev(const struct tag *tags)
> +{
> + const struct tag *tag;
> +
> + if (tags->hdr.tag != ATAG_CORE)
> + return;
> +
> + for_each_tag(tag, tags) {
> + if (tag->hdr.tag == ATAG_REVISION) {
> + system_rev = tag->u.revision.rev;
> + break;
> + }
> + }
> +}
> +
> /* Legacy userspace on Nokia N900 needs ATAGS exported in /proc/atags,
> * save them while the data is still not overwritten
> */
> static void __init rx51_reserve(void)
> {
> - save_atags((const struct tag *)(PAGE_OFFSET + 0x100));
> + const struct tag *tags = (const struct tag *)(PAGE_OFFSET + 0x100);
> +
> + save_atags(tags);
> + rx51_set_system_rev(tags);
> omap_reserve();
> }
>
> --
> 1.9.1
>
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web