Skip to contentSkip to conversation

Fix port 0 mac address for mips mv643xx platforms

PATCH In review Dale Farnsworth 2 participants 2 messages Feb 20, 2007 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix port 0 mac address for mips mv643xx platforms

From: Dale Farnsworth <[email protected]>

---

Untested, but seems obvious enough.

 arch/mips/momentum/jaguar_atx/platform.c |    2 +-
 arch/mips/momentum/ocelot_3/platform.c   |    2 +-
 arch/mips/momentum/ocelot_c/platform.c   |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
arch/mips/momentum/jaguar_atx/platform.c +1 -1
Index: b/arch/mips/momentum/jaguar_atx/platform.c
===================================================================
@@ -200,7 +200,7 @@ static int __init mv643xx_eth_add_pds(vo
 	int ret;
 
 	get_mac(mac);
-	eth_mac_add(eth1_mac_addr, mac, 0);
+	eth_mac_add(eth0_mac_addr, mac, 0);
 	eth_mac_add(eth1_mac_addr, mac, 1);
 	eth_mac_add(eth2_mac_addr, mac, 2);
 	ret = platform_add_devices(mv643xx_eth_pd_devs,
arch/mips/momentum/ocelot_3/platform.c +1 -1
Index: b/arch/mips/momentum/ocelot_3/platform.c
===================================================================
@@ -200,7 +200,7 @@ static int __init mv643xx_eth_add_pds(vo
 	int ret;
 
 	get_mac(mac);
-	eth_mac_add(eth1_mac_addr, mac, 0);
+	eth_mac_add(eth0_mac_addr, mac, 0);
 	eth_mac_add(eth1_mac_addr, mac, 1);
 	eth_mac_add(eth2_mac_addr, mac, 2);
 	ret = platform_add_devices(mv643xx_eth_pd_devs,
arch/mips/momentum/ocelot_c/platform.c +1 -1
Index: b/arch/mips/momentum/ocelot_c/platform.c
===================================================================
@@ -174,7 +174,7 @@ static int __init mv643xx_eth_add_pds(vo
 	int ret;
 
 	get_mac(mac);
-	eth_mac_add(eth1_mac_addr, mac, 0);
+	eth_mac_add(eth0_mac_addr, mac, 0);
 	eth_mac_add(eth1_mac_addr, mac, 1);
 	ret = platform_add_devices(mv643xx_eth_pd_devs,
 			ARRAY_SIZE(mv643xx_eth_pd_devs));
#1 lore raw
Quoted 1 line · Dale Farnsworth

Untested, but seems obvious enough.

Indeed. Also an impressive demonstration that these platforms are probably untested or their users (not unlikely in the embedded world!) are just damn silent.

Ralf