aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2009-07-12 16:02:27 +0000
committerGabor Juhos <juhosg@openwrt.org>2009-07-12 16:02:27 +0000
commita9c43c0abb2ab8f646738767d24b13c504c6097c (patch)
tree6a9a0825b84d332285e18e6ce3cc6c670f61515f /target/linux/ar71xx
parent2bcba1b55cabfc61b12d0eba3aabd1f708add934 (diff)
downloadupstream-a9c43c0abb2ab8f646738767d24b13c504c6097c.tar.gz
upstream-a9c43c0abb2ab8f646738767d24b13c504c6097c.tar.bz2
upstream-a9c43c0abb2ab8f646738767d24b13c504c6097c.zip
[ar71xx] ag71xx driver: don't flush ddr on tx path
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16817 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx')
-rw-r--r--target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_main.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_main.c b/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_main.c
index e5eced2286..9b96f3d14b 100644
--- a/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_main.c
+++ b/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_main.c
@@ -457,19 +457,13 @@ static int ag71xx_stop(struct net_device *dev)
static int ag71xx_hard_start_xmit(struct sk_buff *skb, struct net_device *dev)
{
struct ag71xx *ag = netdev_priv(dev);
- struct ag71xx_platform_data *pdata = ag71xx_get_pdata(ag);
struct ag71xx_ring *ring = &ag->tx_ring;
struct ag71xx_desc *desc;
- unsigned long flags;
int i;
i = ring->curr % AG71XX_TX_RING_SIZE;
desc = &ring->descs[i];
- spin_lock_irqsave(&ag->lock, flags);
- pdata->ddr_flush();
- spin_unlock_irqrestore(&ag->lock, flags);
-
if (!ag71xx_desc_empty(desc))
goto err_drop;