From: Finn Thain Date: Sat, 15 Feb 2020 21:03:32 +0000 (+1100) Subject: net/sonic: Remove explicit memory barriers X-Git-Tag: v5.15~4200^2~416^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=13cfff1a902c647fc9d5ef9c090106097d7b7f79;p=platform%2Fkernel%2Flinux-starfive.git net/sonic: Remove explicit memory barriers The explicit memory barriers are redundant now that proper locking and MMIO accessors have been employed. Tested-by: Stan Johnson Signed-off-by: Finn Thain Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/natsemi/sonic.c b/drivers/net/ethernet/natsemi/sonic.c index 1d6de67..508c6a8 100644 --- a/drivers/net/ethernet/natsemi/sonic.c +++ b/drivers/net/ethernet/natsemi/sonic.c @@ -311,12 +311,10 @@ static int sonic_send_packet(struct sk_buff *skb, struct net_device *dev) sonic_tda_put(dev, entry, SONIC_TD_LINK, sonic_tda_get(dev, entry, SONIC_TD_LINK) | SONIC_EOL); - wmb(); lp->tx_len[entry] = length; lp->tx_laddr[entry] = laddr; lp->tx_skb[entry] = skb; - wmb(); sonic_tda_put(dev, lp->eol_tx, SONIC_TD_LINK, sonic_tda_get(dev, lp->eol_tx, SONIC_TD_LINK) & ~SONIC_EOL); lp->eol_tx = entry;