aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-03-18 22:06:51 +0000
committerGabor Juhos <juhosg@openwrt.org>2012-03-18 22:06:51 +0000
commitfa7a83df4b208f1f09d00af171fc8e49f2c3226e (patch)
tree7c2a9214acc374566c233f6f7ecef81860e7cbb3 /target/linux/generic
parent2ddbcb98ee580c6e0f70d98c77de4975764d5332 (diff)
downloadupstream-fa7a83df4b208f1f09d00af171fc8e49f2c3226e.tar.gz
upstream-fa7a83df4b208f1f09d00af171fc8e49f2c3226e.tar.bz2
upstream-fa7a83df4b208f1f09d00af171fc8e49f2c3226e.zip
generic: ar8216: allow to use more ports
SVN-Revision: 31010
Diffstat (limited to 'target/linux/generic')
-rw-r--r--target/linux/generic/files/drivers/net/phy/ar8216.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/target/linux/generic/files/drivers/net/phy/ar8216.c b/target/linux/generic/files/drivers/net/phy/ar8216.c
index 971ed7ca38..b5c13b084f 100644
--- a/target/linux/generic/files/drivers/net/phy/ar8216.c
+++ b/target/linux/generic/files/drivers/net/phy/ar8216.c
@@ -35,6 +35,7 @@
/* size of the vlan table */
#define AR8X16_MAX_VLANS 128
#define AR8X16_PROBE_RETRIES 10
+#define AR8X16_MAX_PORTS 8
struct ar8216_priv;
@@ -75,7 +76,7 @@ struct ar8216_priv {
u16 vlan_id[AR8X16_MAX_VLANS];
u8 vlan_table[AR8X16_MAX_VLANS];
u8 vlan_tagged;
- u16 pvid[AR8216_NUM_PORTS];
+ u16 pvid[AR8X16_MAX_PORTS];
};
#define to_ar8216(_dev) container_of(_dev, struct ar8216_priv, dev)
@@ -736,7 +737,7 @@ static int
ar8216_sw_hw_apply(struct switch_dev *dev)
{
struct ar8216_priv *priv = to_ar8216(dev);
- u8 portmask[AR8216_NUM_PORTS];
+ u8 portmask[AR8X16_MAX_PORTS];
int i, j;
mutex_lock(&priv->reg_mutex);