summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKouei Abe <kouei.abe.cp@renesas.com>2013-08-30 12:41:07 +0900
committerDavid S. Miller <davem@davemloft.net>2013-09-03 22:02:32 -0400
commit7db8e0c14c9cb4adb667b4c558d8ffec8d5b40f2 (patch)
tree2cf26a337277f98f9d00d243e204ce4c6defd855
parentd3ab3ffd1d728d7ee77340e7e7e2c7cfe6a4013e (diff)
sh_eth: Fix cache invalidation omission of receive buffer
Signed-off-by: Kouei Abe <kouei.abe.cp@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/ethernet/renesas/sh_eth.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/renesas/sh_eth.c b/drivers/net/ethernet/renesas/sh_eth.c
index 06d8f62626e..60ec0f754b8 100644
--- a/drivers/net/ethernet/renesas/sh_eth.c
+++ b/drivers/net/ethernet/renesas/sh_eth.c
@@ -1342,6 +1342,9 @@ static int sh_eth_rx(struct net_device *ndev, u32 intr_status, int *quota)
mdp->rx_skbuff[entry] = NULL;
if (mdp->cd->rpadir)
skb_reserve(skb, NET_IP_ALIGN);
+ dma_sync_single_for_cpu(&ndev->dev, rxdesc->addr,
+ mdp->rx_buf_sz,
+ DMA_FROM_DEVICE);
skb_put(skb, pkt_len);
skb->protocol = eth_type_trans(skb, ndev);
netif_rx(skb);