[OpenWrt-Devel] [PATCH 1/14] brcm63xx: Fix fallback sprom il0mac

Álvaro Fernández Rojas noltari at gmail.com
Sat Aug 2 08:04:51 EDT 2014


Signed-off-by: Álvaro Fernández Rojas <noltari at gmail.com>
---
diff --git a/target/linux/brcm63xx/patches-3.14/356-MIPS-BCM63XX-move-fallback-sprom-support-into-its-ow.patch b/target/linux/brcm63xx/patches-3.14/356-MIPS-BCM63XX-move-fallback-sprom-support-into-its-ow.patch
index 8caf34f..450bc1d 100644
--- a/target/linux/brcm63xx/patches-3.14/356-MIPS-BCM63XX-move-fallback-sprom-support-into-its-ow.patch
+++ b/target/linux/brcm63xx/patches-3.14/356-MIPS-BCM63XX-move-fallback-sprom-support-into-its-ow.patch
@@ -169,7 +169,7 @@ Signed-off-by: Jonas Gorski <jogo at openwrt.org>
 +	int ret = 0;
 +
 +#ifdef CONFIG_SSB_PCIHOST
-+	memcpy(bcm63xx_sprom.et0mac, mac, ETH_ALEN);
++	memcpy(bcm63xx_sprom.il0mac, mac, ETH_ALEN);
 +	memcpy(bcm63xx_sprom.et0mac, mac, ETH_ALEN);
 +	memcpy(bcm63xx_sprom.et1mac, mac, ETH_ALEN);
 +
diff --git a/target/linux/brcm63xx/patches-3.14/357-MIPS-BCM63XX-use-platform-data-for-the-sprom.patch b/target/linux/brcm63xx/patches-3.14/357-MIPS-BCM63XX-use-platform-data-for-the-sprom.patch
index e2a9367..bc35c25 100644
--- a/target/linux/brcm63xx/patches-3.14/357-MIPS-BCM63XX-use-platform-data-for-the-sprom.patch
+++ b/target/linux/brcm63xx/patches-3.14/357-MIPS-BCM63XX-use-platform-data-for-the-sprom.patch
@@ -48,10 +48,10 @@ Signed-off-by: Jonas Gorski <jogo at openwrt.org>
  	int ret = 0;
  
  #ifdef CONFIG_SSB_PCIHOST
--	memcpy(bcm63xx_sprom.et0mac, mac, ETH_ALEN);
+-	memcpy(bcm63xx_sprom.il0mac, mac, ETH_ALEN);
 -	memcpy(bcm63xx_sprom.et0mac, mac, ETH_ALEN);
 -	memcpy(bcm63xx_sprom.et1mac, mac, ETH_ALEN);
-+	memcpy(bcm63xx_sprom.et0mac, data->mac_addr, ETH_ALEN);
++	memcpy(bcm63xx_sprom.il0mac, data->mac_addr, ETH_ALEN);
 +	memcpy(bcm63xx_sprom.et0mac, data->mac_addr, ETH_ALEN);
 +	memcpy(bcm63xx_sprom.et1mac, data->mac_addr, ETH_ALEN);
  
diff --git a/target/linux/brcm63xx/patches-3.14/359-MIPS-BCM63XX-allow-different-types-of-sprom.patch b/target/linux/brcm63xx/patches-3.14/359-MIPS-BCM63XX-allow-different-types-of-sprom.patch
index 3362002..0c4a9be 100644
--- a/target/linux/brcm63xx/patches-3.14/359-MIPS-BCM63XX-allow-different-types-of-sprom.patch
+++ b/target/linux/brcm63xx/patches-3.14/359-MIPS-BCM63XX-allow-different-types-of-sprom.patch
@@ -45,7 +45,7 @@ Signed-off-by: Jonas Gorski <jogo at openwrt.org>
 +		return -EINVAL;
 +	}
 +
- 	memcpy(bcm63xx_sprom.et0mac, data->mac_addr, ETH_ALEN);
+ 	memcpy(bcm63xx_sprom.il0mac, data->mac_addr, ETH_ALEN);
  	memcpy(bcm63xx_sprom.et0mac, data->mac_addr, ETH_ALEN);
  	memcpy(bcm63xx_sprom.et1mac, data->mac_addr, ETH_ALEN);
 --- a/arch/mips/include/asm/mach-bcm63xx/bcm63xx_fallback_sprom.h
diff --git a/target/linux/brcm63xx/patches-3.14/360-MIPS-BCM63XX-add-support-for-raw-sproms.patch b/target/linux/brcm63xx/patches-3.14/360-MIPS-BCM63XX-add-support-for-raw-sproms.patch
index 5844361..42502eb 100644
--- a/target/linux/brcm63xx/patches-3.14/360-MIPS-BCM63XX-add-support-for-raw-sproms.patch
+++ b/target/linux/brcm63xx/patches-3.14/360-MIPS-BCM63XX-add-support-for-raw-sproms.patch
@@ -512,6 +512,6 @@ Signed-off-by: Jonas Gorski <jogo at openwrt.org>
 +	if (size > 0)
 +		sprom_extract(&bcm63xx_sprom, template_sprom, size);
 +
- 	memcpy(bcm63xx_sprom.et0mac, data->mac_addr, ETH_ALEN);
+ 	memcpy(bcm63xx_sprom.il0mac, data->mac_addr, ETH_ALEN);
  	memcpy(bcm63xx_sprom.et0mac, data->mac_addr, ETH_ALEN);
  	memcpy(bcm63xx_sprom.et1mac, data->mac_addr, ETH_ALEN);
diff --git a/target/linux/brcm63xx/patches-3.14/365-MIPS-BCM63XX-allow-setting-a-pci-bus-device-for-fall.patch b/target/linux/brcm63xx/patches-3.14/365-MIPS-BCM63XX-allow-setting-a-pci-bus-device-for-fall.patch
index 15c760a..40591e5 100644
--- a/target/linux/brcm63xx/patches-3.14/365-MIPS-BCM63XX-allow-setting-a-pci-bus-device-for-fall.patch
+++ b/target/linux/brcm63xx/patches-3.14/365-MIPS-BCM63XX-allow-setting-a-pci-bus-device-for-fall.patch
@@ -76,10 +76,10 @@ Signed-off-by: Jonas Gorski <jogo at openwrt.org>
 +		sprom_extract(&fallback_sprom.sprom, template_sprom, size);
  	}
  
--	memcpy(bcm63xx_sprom.et0mac, data->mac_addr, ETH_ALEN);
+-	memcpy(bcm63xx_sprom.il0mac, data->mac_addr, ETH_ALEN);
 -	memcpy(bcm63xx_sprom.et0mac, data->mac_addr, ETH_ALEN);
 -	memcpy(bcm63xx_sprom.et1mac, data->mac_addr, ETH_ALEN);
-+	memcpy(fallback_sprom.sprom.et0mac, data->mac_addr, ETH_ALEN);
++	memcpy(fallback_sprom.sprom.il0mac, data->mac_addr, ETH_ALEN);
 +	memcpy(fallback_sprom.sprom.et0mac, data->mac_addr, ETH_ALEN);
 +	memcpy(fallback_sprom.sprom.et1mac, data->mac_addr, ETH_ALEN);
 +
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list