summaryrefslogtreecommitdiffstats
path: root/target/linux/generic-2.6/files
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2008-04-24 01:09:47 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2008-04-24 01:09:47 +0000
commit7bd818a6e3ea03f7b0fd69f29ef45276cfdeac11 (patch)
treeab4e06471c7185e045417c6546a606f199938fa9 /target/linux/generic-2.6/files
parent0049c7b81aaa6129fa314453002c1d4fb1218216 (diff)
fix vlan mapping for cpu port on the marvell switch
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10934 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic-2.6/files')
-rw-r--r--target/linux/generic-2.6/files/drivers/net/phy/mvswitch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/generic-2.6/files/drivers/net/phy/mvswitch.c b/target/linux/generic-2.6/files/drivers/net/phy/mvswitch.c
index 27c0920bb..834d31217 100644
--- a/target/linux/generic-2.6/files/drivers/net/phy/mvswitch.c
+++ b/target/linux/generic-2.6/files/drivers/net/phy/mvswitch.c
@@ -274,8 +274,8 @@ mvswitch_config_init(struct phy_device *pdev)
}
/* build the target list for the cpu port */
- for (i = 0, vlmap = 0; i < ARRAY_SIZE(priv->vlans); i++)
- vlmap |= priv->vlans[i];
+ for (i = 0; i < MV_PORTS; i++)
+ vlmap |= (1 << i);
w16(pdev, MV_PORTREG(VLANMAP, MV_CPUPORT),
MV_PORTVLAN_PORTS(vlmap)