brcm63xx: Fix fallback sprom il0mac
authorjogo <jogo@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 10 Aug 2014 12:21:30 +0000 (12:21 +0000)
committerjogo <jogo@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 10 Aug 2014 12:21:30 +0000 (12:21 +0000)
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42097 3c298f89-4303-0410-b956-a3cf2f4a3e73

target/linux/brcm63xx/patches-3.14/356-MIPS-BCM63XX-move-fallback-sprom-support-into-its-ow.patch
target/linux/brcm63xx/patches-3.14/357-MIPS-BCM63XX-use-platform-data-for-the-sprom.patch
target/linux/brcm63xx/patches-3.14/359-MIPS-BCM63XX-allow-different-types-of-sprom.patch
target/linux/brcm63xx/patches-3.14/360-MIPS-BCM63XX-add-support-for-raw-sproms.patch
target/linux/brcm63xx/patches-3.14/362-MIPS-BCM63XX-also-register-a-fallback-sprom-for-bcma.patch
target/linux/brcm63xx/patches-3.14/364-MIPS-BCM63XX-allow-board-files-to-provide-sprom-fixu.patch
target/linux/brcm63xx/patches-3.14/365-MIPS-BCM63XX-allow-setting-a-pci-bus-device-for-fall.patch

index 8caf34f..450bc1d 100644 (file)
@@ -169,7 +169,7 @@ Signed-off-by: Jonas Gorski <jogo@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);
 +
index e2a9367..bc35c25 100644 (file)
@@ -48,10 +48,10 @@ Signed-off-by: Jonas Gorski <jogo@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);
  
index 3362002..0c4a9be 100644 (file)
@@ -45,7 +45,7 @@ Signed-off-by: Jonas Gorski <jogo@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
index 5844361..42502eb 100644 (file)
@@ -512,6 +512,6 @@ Signed-off-by: Jonas Gorski <jogo@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);
index 3bcaee6..6475f9f 100644 (file)
@@ -106,7 +106,7 @@ Signed-off-by: Jonas Gorski <jogo@openwrt.org>
                memcpy(&bcm63xx_sprom, &bcm63xx_default_sprom,
                       sizeof(bcm63xx_sprom));
 @@ -692,8 +711,19 @@ int __init bcm63xx_register_fallback_spr
-       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);
 +#endif /* defined(CONFIG_SSB_PCIHOST) || defined(CONFIG_BCMA_HOST_PCI) */
index e74a62a..74c2846 100644 (file)
@@ -43,7 +43,7 @@ Signed-off-by: Jonas Gorski <jogo@openwrt.org>
                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);
 --- a/arch/mips/include/asm/mach-bcm63xx/bcm63xx_fallback_sprom.h
 +++ b/arch/mips/include/asm/mach-bcm63xx/bcm63xx_fallback_sprom.h
index 15c760a..40591e5 100644 (file)
@@ -76,10 +76,10 @@ Signed-off-by: Jonas Gorski <jogo@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);
 +