[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-backports
Subject:    [PATCH 20/21] header: add dma_wmb()
From:       Hauke Mehrtens <hauke () hauke-m ! de>
Date:       2017-08-21 22:28:16
Message-ID: 20170821222817.17376-21-hauke () hauke-m ! de
[Download RAW message or body]

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 <hauke@hauke-m.de>
---
 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
-- 
2.11.0

--
To unsubscribe from this list: send the line "unsubscribe backports" in
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic