summaryrefslogtreecommitdiff
path: root/target/linux/bcm53xx/patches-3.10/202-bgmac-make-bgmac-work-on-systems-without-nvram.patch
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2013-07-28 21:20:15 +0000
committerHauke Mehrtens <hauke@hauke-m.de>2013-07-28 21:20:15 +0000
commit3e8c39f23928beba50fa1f7e7f0b171a790810ae (patch)
treee910cf009114f430f5759a367a979a94e7c26499 /target/linux/bcm53xx/patches-3.10/202-bgmac-make-bgmac-work-on-systems-without-nvram.patch
parent24628e4ce7e8ec0597890d037473419c97f95765 (diff)
downloadmtk-20170518-3e8c39f23928beba50fa1f7e7f0b171a790810ae.zip
mtk-20170518-3e8c39f23928beba50fa1f7e7f0b171a790810ae.tar.gz
mtk-20170518-3e8c39f23928beba50fa1f7e7f0b171a790810ae.tar.bz2
bcm53xx: add initial bgmac patches
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 37584
Diffstat (limited to 'target/linux/bcm53xx/patches-3.10/202-bgmac-make-bgmac-work-on-systems-without-nvram.patch')
-rw-r--r--target/linux/bcm53xx/patches-3.10/202-bgmac-make-bgmac-work-on-systems-without-nvram.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/target/linux/bcm53xx/patches-3.10/202-bgmac-make-bgmac-work-on-systems-without-nvram.patch b/target/linux/bcm53xx/patches-3.10/202-bgmac-make-bgmac-work-on-systems-without-nvram.patch
new file mode 100644
index 0000000..4ebb942
--- /dev/null
+++ b/target/linux/bcm53xx/patches-3.10/202-bgmac-make-bgmac-work-on-systems-without-nvram.patch
@@ -0,0 +1,24 @@
+From e484cca2387df0878d55d8f3e8e4543aa668dd52 Mon Sep 17 00:00:00 2001
+From: Hauke Mehrtens <hauke@hauke-m.de>
+Date: Wed, 10 Jul 2013 17:55:34 +0200
+Subject: [PATCH 17/18] bgmac: make bgmac work on systems without nvram
+
+Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
+---
+ drivers/net/ethernet/broadcom/bgmac.c | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+--- a/drivers/net/ethernet/broadcom/bgmac.c
++++ b/drivers/net/ethernet/broadcom/bgmac.c
+@@ -16,7 +16,11 @@
+ #include <linux/phy.h>
+ #include <linux/interrupt.h>
+ #include <linux/dma-mapping.h>
++#ifdef CONFIG_BCM47XX
+ #include <bcm47xx_nvram.h>
++#else
++#define bcm47xx_nvram_getenv(a, b, c) -1
++#endif
+
+ static const struct bcma_device_id bgmac_bcma_tbl[] = {
+ BCMA_CORE(BCMA_MANUF_BCM, BCMA_CORE_4706_MAC_GBIT, BCMA_ANY_REV, BCMA_ANY_CLASS),