aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic-2.6/files
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2008-04-28 21:59:06 +0000
committerFelix Fietkau <nbd@openwrt.org>2008-04-28 21:59:06 +0000
commit4bfaf896cb3932fdb1269d01e6591cf755f460bc (patch)
tree6cbc14d9525f5cbd290fca74c91f5be2d2b3fc7b /target/linux/generic-2.6/files
parent5a90720f1f6822cd5e2799ad457eecc961d83756 (diff)
downloadupstream-4bfaf896cb3932fdb1269d01e6591cf755f460bc.tar.gz
upstream-4bfaf896cb3932fdb1269d01e6591cf755f460bc.tar.bz2
upstream-4bfaf896cb3932fdb1269d01e6591cf755f460bc.zip
allow bigger packets in the marvell switch (does not fix the mtu problems yet)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10970 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.c6
1 files changed, 6 insertions, 0 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 834d31217d..cb0d377d27 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
@@ -288,6 +288,12 @@ mvswitch_config_init(struct phy_device *pdev)
);
}
+ /* init switch control */
+ w16(pdev, MV_SWITCHREG(CTRL),
+ MV_SWITCHCTL_MSIZE |
+ MV_SWITCHCTL_DROP
+ );
+
/* hook into the tx function */
priv->hardstart = dev->hard_start_xmit;
pdev->netif_receive_skb = mvswitch_netif_receive_skb;