aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/patches-4.4/0519-gsw_mt7621.patch
diff options
context:
space:
mode:
authorVitaly Chekryzhev <13hakta@gmail.com>2016-10-29 19:17:51 +0500
committerMathias Kresin <dev@kresin.me>2016-11-17 20:01:21 +0100
commit5f38d1ad85044fa14aa18254f0a2b49ae651ec16 (patch)
tree719c8d92b464b6469ce1bb6f9d52217d6504c7f4 /target/linux/ramips/patches-4.4/0519-gsw_mt7621.patch
parent8459d85fa38e8882a9767c105fc01cb8e95e7d5b (diff)
downloadupstream-5f38d1ad85044fa14aa18254f0a2b49ae651ec16.tar.gz
upstream-5f38d1ad85044fa14aa18254f0a2b49ae651ec16.tar.bz2
upstream-5f38d1ad85044fa14aa18254f0a2b49ae651ec16.zip
ramips: add MT7620 MIB support for switch and port
Move definitions to header. Replace array size definitions with macro. Signed-off-by: Vitaly Chekryzhev <13hakta@gmail.com> [merged into 0513-net-mediatek-add-swconfig-driver-for-gsw_mt762x.patch] Signed-off-by: Mathias Kresin <dev@kresin.me> Acked-by: John Crispin <john@phrozen.org>
Diffstat (limited to 'target/linux/ramips/patches-4.4/0519-gsw_mt7621.patch')
-rw-r--r--target/linux/ramips/patches-4.4/0519-gsw_mt7621.patch6
1 files changed, 3 insertions, 3 deletions
diff --git a/target/linux/ramips/patches-4.4/0519-gsw_mt7621.patch b/target/linux/ramips/patches-4.4/0519-gsw_mt7621.patch
index 67e9060ea0..45e320bec3 100644
--- a/target/linux/ramips/patches-4.4/0519-gsw_mt7621.patch
+++ b/target/linux/ramips/patches-4.4/0519-gsw_mt7621.patch
@@ -1,6 +1,6 @@
--- a/drivers/net/ethernet/mediatek/mt7530.c
+++ b/drivers/net/ethernet/mediatek/mt7530.c
-@@ -539,6 +539,7 @@ mt7530_apply_config(struct switch_dev *d
+@@ -541,6 +541,7 @@ mt7530_apply_config(struct switch_dev *d
u8 etags = priv->vlan_entries[i].etags;
u32 val;
@@ -8,7 +8,7 @@
/* vid of vlan */
val = mt7530_r32(priv, REG_ESW_VLAN_VTIM(i));
if (i % 2 == 0) {
-@@ -549,7 +550,7 @@ mt7530_apply_config(struct switch_dev *d
+@@ -551,7 +552,7 @@ mt7530_apply_config(struct switch_dev *d
val |= (vid << 12);
}
mt7530_w32(priv, REG_ESW_VLAN_VTIM(i), val);
@@ -17,7 +17,7 @@
/* vlan port membership */
if (member)
mt7530_w32(priv, REG_ESW_VLAN_VAWD1, REG_ESW_VLAN_VAWD1_IVL_MAC |
-@@ -569,7 +570,11 @@ mt7530_apply_config(struct switch_dev *d
+@@ -571,7 +572,11 @@ mt7530_apply_config(struct switch_dev *d
mt7530_w32(priv, REG_ESW_VLAN_VAWD2, val);
/* write to vlan table */