Commit eb964909 authored by Michael Hennerich's avatar Michael Hennerich Committed by Mike Frysinger

Blackfin: make sure mmiowb inserts a write barrier with SSYNC

Add SSYNC to our implementation of I/O write barrier to ensure ordering
of I/O space writes.  This will make sure that writes following the
barrier will arrive after all previous writes.
Signed-off-by: default avatarMichael Hennerich <michael.hennerich@analog.com>
Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
parent d1401e1d
...@@ -124,7 +124,13 @@ static inline unsigned int readl(const volatile void __iomem *addr) ...@@ -124,7 +124,13 @@ static inline unsigned int readl(const volatile void __iomem *addr)
#define iowrite16(val, x) writew(val, x) #define iowrite16(val, x) writew(val, x)
#define iowrite32(val, x) writel(val, x) #define iowrite32(val, x) writel(val, x)
#define mmiowb() wmb() /**
* I/O write barrier
*
* Ensure ordering of I/O space writes. This will make sure that writes
* following the barrier will arrive after all previous writes.
*/
#define mmiowb() do { SSYNC(); wmb(); } while (0)
#define IO_SPACE_LIMIT 0xffffffff #define IO_SPACE_LIMIT 0xffffffff
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment