Commit 9ba41447 authored by Guido Guenther's avatar Guido Guenther Committed by Linus Torvalds

[PATCH] rivafb: stricter memory ordering

The more relaxed memory ordering od the __raw_{write,read}b broke things
on ppc in the recent rivafb cleanups.

[ Uglyness alert: only the 8-bit accesses are more strongly serialized. 
  The 16- and 32-bit ones have always been relaxed. Gaah. ]
Signed-off-by: default avatarGuido Guenther <agx@sigxcpu.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 5240bcbf
......@@ -75,8 +75,8 @@ typedef unsigned int U032;
*/
#include <asm/io.h>
#define NV_WR08(p,i,d) (__raw_writeb((d), (void __iomem *)(p) + (i)))
#define NV_RD08(p,i) (__raw_readb((void __iomem *)(p) + (i)))
#define NV_WR08(p,i,d) (writeb((d), (void __iomem *)(p) + (i)))
#define NV_RD08(p,i) (readb((void __iomem *)(p) + (i)))
#define NV_WR16(p,i,d) (__raw_writew((d), (void __iomem *)(p) + (i)))
#define NV_RD16(p,i) (__raw_readw((void __iomem *)(p) + (i)))
#define NV_WR32(p,i,d) (__raw_writel((d), (void __iomem *)(p) + (i)))
......
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