diff options
author | Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com> | 2009-05-24 23:52:35 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-05-25 22:49:53 -0700 |
commit | e88aae7bb1dc50457489d1d7c81dcf4db23ccf94 (patch) | |
tree | 51c47e37796d83be0b6ecd587537a70633c4a301 /drivers/net/sh_eth.c | |
parent | a1dcb6628b9489504a3be2515580fc4de891f94a (diff) | |
download | linux-e88aae7bb1dc50457489d1d7c81dcf4db23ccf94.tar.gz linux-e88aae7bb1dc50457489d1d7c81dcf4db23ccf94.tar.bz2 linux-e88aae7bb1dc50457489d1d7c81dcf4db23ccf94.zip |
net: sh_eth: fix cache coherency issue
Fix the problem that may not work receive process by cache coherency issue.
Signed-off-by: Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/sh_eth.c')
-rw-r--r-- | drivers/net/sh_eth.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/sh_eth.c b/drivers/net/sh_eth.c index 3ab28bb00c12..a742297e3e94 100644 --- a/drivers/net/sh_eth.c +++ b/drivers/net/sh_eth.c @@ -250,6 +250,8 @@ static void sh_eth_ring_format(struct net_device *ndev) mdp->rx_skbuff[i] = skb; if (skb == NULL) break; + dma_map_single(&ndev->dev, skb->tail, mdp->rx_buf_sz, + DMA_FROM_DEVICE); skb->dev = ndev; /* Mark as being used by this device. */ #if defined(CONFIG_CPU_SUBTYPE_SH7763) reserve = SH7763_SKB_ALIGN @@ -559,6 +561,8 @@ static int sh_eth_rx(struct net_device *ndev) mdp->rx_skbuff[entry] = skb; if (skb == NULL) break; /* Better luck next round. */ + dma_map_single(&ndev->dev, skb->tail, mdp->rx_buf_sz, + DMA_FROM_DEVICE); skb->dev = ndev; #if defined(CONFIG_CPU_SUBTYPE_SH7763) reserve = SH7763_SKB_ALIGN |