From patchwork Mon Aug 21 22:28:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hauke Mehrtens X-Patchwork-Id: 9913915 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D1345603FA for ; Mon, 21 Aug 2017 22:28:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B1D70286AB for ; Mon, 21 Aug 2017 22:28:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A684F286C5; Mon, 21 Aug 2017 22:28:52 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5118C286AB for ; Mon, 21 Aug 2017 22:28:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754198AbdHUW2v (ORCPT ); Mon, 21 Aug 2017 18:28:51 -0400 Received: from mx2.mailbox.org ([80.241.60.215]:42959 "EHLO mx2.mailbox.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754429AbdHUW2u (ORCPT ); Mon, 21 Aug 2017 18:28:50 -0400 Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx2.mailbox.org (Postfix) with ESMTPS id 251CC46839; Tue, 22 Aug 2017 00:28:49 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter03.heinlein-hosting.de (spamfilter03.heinlein-hosting.de [80.241.56.117]) (amavisd-new, port 10030) with ESMTP id SGakAAtozot7; Tue, 22 Aug 2017 00:28:48 +0200 (CEST) From: Hauke Mehrtens To: johannes@sipsolutions.net Cc: backports@vger.kernel.org, Hauke Mehrtens Subject: [PATCH 20/21] header: add dma_wmb() Date: Tue, 22 Aug 2017 00:28:16 +0200 Message-Id: <20170821222817.17376-21-hauke@hauke-m.de> In-Reply-To: <20170821222817.17376-1-hauke@hauke-m.de> References: <20170821222817.17376-1-hauke@hauke-m.de> Sender: backports-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: backports@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This is used by the qtnfmac driver. This was added in commit 1077fa36f23e259 ("arch: Add lightweight memory barriers dma_rmb() and dma_wmb()") Signed-off-by: Hauke Mehrtens --- backport/backport-include/asm/barrier.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backport/backport-include/asm/barrier.h b/backport/backport-include/asm/barrier.h index 9147fb05..9e1e1f11 100644 --- a/backport/backport-include/asm/barrier.h +++ b/backport/backport-include/asm/barrier.h @@ -11,6 +11,10 @@ #define dma_rmb() rmb() #endif +#ifndef dma_wmb +#define dma_wmb() wmb() +#endif + #ifndef smp_mb__after_atomic #define smp_mb__after_atomic smp_mb__after_clear_bit #endif