projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
PXA can use EABI, too
[openwrt.git]
/
target
/
linux
/
generic-2.6
/
files
/
drivers
/
net
/
phy
/
mvswitch.c
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
3e644c2
..
834d312
100644
(file)
--- a/
target/linux/generic-2.6/files/drivers/net/phy/mvswitch.c
+++ b/
target/linux/generic-2.6/files/drivers/net/phy/mvswitch.c
@@
-235,7
+235,6
@@
mvswitch_config_init(struct phy_device *pdev)
/* initialize the cpu port */
w16(pdev, MV_PORTREG(CONTROL, MV_CPUPORT),
MV_PORTCTRL_ENABLED |
/* initialize the cpu port */
w16(pdev, MV_PORTREG(CONTROL, MV_CPUPORT),
MV_PORTCTRL_ENABLED |
- MV_PORTCTRL_VLANTUN |
MV_PORTCTRL_RXTR |
MV_PORTCTRL_TXTR
);
MV_PORTCTRL_RXTR |
MV_PORTCTRL_TXTR
);
@@
-275,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++)
- 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)
w16(pdev, MV_PORTREG(VLANMAP, MV_CPUPORT),
MV_PORTVLAN_PORTS(vlmap)
This page took
0.027003 seconds
and
4
git commands to generate.