Don't call idprom_init() on LEON
PATCH 3/4 Don't call idprom_init() on LEON
LEON does not have an idprom and idprom_init prints some bogus info (e.g. incorrect Ethernet address).
--- arch/sparc/kernel/setup_32.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
arch/sparc/kernel/setup_32.c +3 -0
@@ -271,7 +271,10 @@ void __init setup_arch(char **cmdline_p)#endif boot_flags_init (*cmdline_p); +#ifndef CONFIG_SPARC_LEON idprom_init (); +#endif +if (ARCH_SUN4C )sun4c_probe_vac ();load_mmu ();
Signature · 1 line
1.5.4
Quoted 13 lines · Kristoffer Glembo
LEON does not have an idprom and
idprom_initprints some bogus info (e.g. incorrect Ethernet address).Signed-off-by Kristoffer Glembo <[email protected]>--- arch/sparc/kernel/setup_32.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)arch/sparc/kernel/setup_32.c +0
-0
arch/sparc/kernel/setup_32.c void __init setup_arch(char **cmdline_p) · line 280
Quoted 10 lines
arch/sparc/kernel/setup_32.c +3
-0@@ -271,7 +271,10 @@ void __init setup_arch(char **cmdline_p)#endif boot_flags_init (*cmdline_p); +#ifndef CONFIG_SPARC_LEON idprom_init (); +#endif +if (ARCH_SUN4C )sun4c_probe_vac ();load_mmu ();
I suggest to drop all idprom support in case of
leon and then use stub functions so you do not
need ifdef like above.
Sam
David Miller
maintainerFrom: Sam Ravnborg <[email protected]>
Date: Tue, 1 Dec 2009 19:21:16 +0100
Quoted 17 lines · Kristoffer Glembo
Quoted 16 lines
LEON does not have an idprom and
idprom_initprints some bogus info (e.g. incorrect Ethernet address).Signed-off-by Kristoffer Glembo <[email protected]>--- arch/sparc/kernel/setup_32.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)arch/sparc/kernel/setup_32.c +0
-0@@ -271,7 +271,10 @@ void __init setup_arch(char **cmdline_p)#endif boot_flags_init (*cmdline_p);
Quoted 11 lines
arch/sparc/kernel/setup_32.c void __init setup_arch(char **cmdline_p) · line 280
Quoted 7 lines
arch/sparc/kernel/setup_32.c +3
-0+#ifndef CONFIG_SPARC_LEON idprom_init (); +#endif +if (ARCH_SUN4C )sun4c_probe_vac ();load_mmu ();I suggest to drop all idprom support in case of
leon and then use stub functions so you do not
need ifdef like above.
Also, the idprom provides a default ethernet address for the system. It might be even better to just cons up a fake idprom or similar.