mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-09-12 15:14:38 +03:00
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
This commit is contained in:
parent
0049c7b81a
commit
7bd818a6e3
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user