diff options
author | Felix Fietkau <nbd@openwrt.org> | 2008-04-24 01:09:47 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2008-04-24 01:09:47 +0000 |
commit | 86bbc820d56605428c965aa911da263ab63ed570 (patch) | |
tree | 98dd20162c3dc4c01748e3f95d39dc456f126307 /target | |
parent | e569db2e4b663f5a6e9ff17908a94243df565a20 (diff) | |
download | mtk-20170518-86bbc820d56605428c965aa911da263ab63ed570.zip mtk-20170518-86bbc820d56605428c965aa911da263ab63ed570.tar.gz mtk-20170518-86bbc820d56605428c965aa911da263ab63ed570.tar.bz2 |
fix vlan mapping for cpu port on the marvell switch
SVN-Revision: 10934
Diffstat (limited to 'target')
-rw-r--r-- | target/linux/generic-2.6/files/drivers/net/phy/mvswitch.c | 4 |
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 27c0920..834d312 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) |