fix vlan mapping for cpu port on the marvell switch

SVN-Revision: 10934
This commit is contained in:
Felix Fietkau 2008-04-24 01:09:47 +00:00
parent e569db2e4b
commit 86bbc820d5

View File

@ -274,8 +274,8 @@ mvswitch_config_init(struct phy_device *pdev)
} }
/* build the target list for the cpu port */ /* build the target list for the cpu port */
for (i = 0, vlmap = 0; i < ARRAY_SIZE(priv->vlans); i++) for (i = 0; i < MV_PORTS; i++)
vlmap |= priv->vlans[i]; vlmap |= (1 << i);
w16(pdev, MV_PORTREG(VLANMAP, MV_CPUPORT), w16(pdev, MV_PORTREG(VLANMAP, MV_CPUPORT),
MV_PORTVLAN_PORTS(vlmap) MV_PORTVLAN_PORTS(vlmap)