From: françois romieu Date: Fri, 1 May 2015 20:14:38 +0000 (+0200) Subject: via-rhine: commit receive buffer address before descriptor status update. X-Git-Tag: v4.9.8~4072^2~379^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e45af497950a89459a0c4b13ffd91e1729fffef4;p=platform%2Fkernel%2Flinux-rpi3.git via-rhine: commit receive buffer address before descriptor status update. Signed-off-by: Francois Romieu Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/via/via-rhine.c b/drivers/net/ethernet/via/via-rhine.c index de28504..88b45c7 100644 --- a/drivers/net/ethernet/via/via-rhine.c +++ b/drivers/net/ethernet/via/via-rhine.c @@ -2075,6 +2075,7 @@ static int rhine_rx(struct net_device *dev, int limit) break; } rp->rx_ring[entry].addr = cpu_to_le32(rp->rx_skbuff_dma[entry]); + dma_wmb(); } rp->rx_ring[entry].rx_status = cpu_to_le32(DescOwn); }