Skip to contentSkip to conversation

Don't call idprom_init() on LEON

PATCH In review Kristoffer Glembo 3 participants 3 messages Dec 1, 2009 SPARC + UltraSPARC (sparc/sparc64)

lore
Share & tools
lore
#0 lore raw

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
index 9be2af5..1d3cf56 100644
@@ -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
#1 lore raw
Quoted 13 lines · Kristoffer Glembo

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 +0 -0
index 9be2af5..1d3cf56 100644

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

maintainer
#2 lore raw
In reply to Kristoffer Glembo

From: 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_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 +0 -0
index 9be2af5..1d3cf56 100644
@@ -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.