diff mbox

[20/21] header: add dma_wmb()

Message ID 20170821222817.17376-21-hauke@hauke-m.de (mailing list archive)
State Accepted
Headers show

Commit Message

Hauke Mehrtens Aug. 21, 2017, 10:28 p.m. UTC
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 mbox

Patch

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