From: Kouei Abe Date: Fri, 30 Aug 2013 03:41:07 +0000 (+0900) Subject: sh_eth: Fix cache invalidation omission of receive buffer X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7db8e0c14c9cb4adb667b4c558d8ffec8d5b40f2;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git sh_eth: Fix cache invalidation omission of receive buffer Signed-off-by: Kouei Abe Signed-off-by: Simon Horman Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/renesas/sh_eth.c b/drivers/net/ethernet/renesas/sh_eth.c index 06d8f62626e4..60ec0f754b83 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);