Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4153830ybv; Mon, 10 Feb 2020 13:27:29 -0800 (PST) X-Google-Smtp-Source: APXvYqwjQloWx9OxFcqCXAmGINqsx4wjImw76OVNbelcCHhrEZq/c0zl5c0PJTX9BdzVgWIczpZr X-Received: by 2002:aca:dc04:: with SMTP id t4mr729343oig.51.1581370049728; Mon, 10 Feb 2020 13:27:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581370049; cv=none; d=google.com; s=arc-20160816; b=E7M5ZxPKMbZfZMw1UT1489sLVVQPGGED/k5M9JRZ/iGUnfvJD/L/xJLewspV815y2W HaN7gj3bxVg5vJFP3zU8H6CJi3e36rgN2kH+53AyNnQdm0BmYYS0oJyIkGbF+pX25n5l 2tWWCs5ZV2ploPVhkGNiz6wAnHhvB6Wa37de88gckc/Eb9z8IjeqJ0S/0P8Izm5VxU8i hevXNaxzyprWCRPhVA9kcSePO28+yjMpGtE+VcMpOaj15cHAGkGVuGbBgEqeoE7wvh3q Jk6zFwAFEQ1n+ac39crG+RoG7e+KYAcmc6ZVDX9TB5bRWT/sOY8f9oGC8io5lvBv8PPG RPpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:subject:from:references:in-reply-to :message-id:cc:to; bh=WwxK+uo7uS7pu1RCj5gkeDqvc8ql56qkn8GCeaPEmss=; b=p5Xaa84vjllLKf/8BoR3mle5fqJRR69HGMYNlEGr6uC7BlyWC7orPbpxnmBS5uDwJu 0eg0ow7Nzt/mbMhTDF45rLjHYRLFZLuWIJyo9+GhTQIBhsinQcGOC/Swmsqw3zA98z8y OqvacheLmr8qJ0qFv7+AtL+pxdoJqiX/PdVn9fN0EP5lRn/dq205RWFB+eC8hqkGRSHK S7K1aY/wx3TzC5qzj3bIUT4yz9DkqysSbTec3DU9rtnfSeZoU/sp66i4xOEIED7LlCQQ sBcIVEawr3p+6dWR5B0en2RMQ/BxsYkD4aw+C1jjE/V9MTby8D2X4tugOkbgnshPa7Iw ws/w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c4si1003310ots.107.2020.02.10.13.27.17; Mon, 10 Feb 2020 13:27:29 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727684AbgBJV1A (ORCPT + 99 others); Mon, 10 Feb 2020 16:27:00 -0500 Received: from kvm5.telegraphics.com.au ([98.124.60.144]:59758 "EHLO kvm5.telegraphics.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727522AbgBJV0u (ORCPT ); Mon, 10 Feb 2020 16:26:50 -0500 Received: by kvm5.telegraphics.com.au (Postfix, from userid 502) id 30EE529B51; Mon, 10 Feb 2020 16:26:48 -0500 (EST) To: "David S. Miller" Cc: Thomas Bogendoerfer , Chris Zankel , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Message-Id: <0124da144de7ddce8d1fe6d4fd72a17c343a5f04.1581369531.git.fthain@telegraphics.com.au> In-Reply-To: References: From: Finn Thain Subject: [PATCH net-next 5/7] net/sonic: Remove explicit memory barriers Date: Tue, 11 Feb 2020 08:18:50 +1100 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- drivers/net/ethernet/natsemi/sonic.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/ethernet/natsemi/sonic.c b/drivers/net/ethernet/natsemi/sonic.c index 1d6de6706875..508c6a80fc6e 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; -- 2.24.1