summaryrefslogtreecommitdiff
path: root/target/linux
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
commitc3fcb26d476e927350a733a445eae026906baed4 (patch)
treec11f8969b9e60d10ea6689175e96df1d84d8697d /target/linux
parent8222e2143225135be5e48c3b78733fbc4a08187a (diff)
downloadmtk-20170518-c3fcb26d476e927350a733a445eae026906baed4.zip
mtk-20170518-c3fcb26d476e927350a733a445eae026906baed4.tar.gz
mtk-20170518-c3fcb26d476e927350a733a445eae026906baed4.tar.bz2
allow bigger packets in the marvell switch (does not fix the mtu problems yet)
SVN-Revision: 10970
Diffstat (limited to 'target/linux')
-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 834d312..cb0d377 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;