MIPS: define write{b,w,l,q}_relaxed
authorFlorian Fainelli <f.fainelli@gmail.com>
Fri, 31 May 2013 13:07:44 +0000 (13:07 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 1 Jul 2013 13:10:59 +0000 (15:10 +0200)
MIPS does define read{b,w,l,q}_relaxed but does not define their write
counterparts: write{b,w,l,q}_relaxed. This patch adds the missing
definitions for the write*_relaxed I/O accessors.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Acked-by: John Crispin <blogic@openwrt.org>
Cc: linux-mips@linux-mips.org
Cc: cernekee@gmail.com
Cc: jogo@openwrt.org
Patchwork: https://patchwork.linux-mips.org/patch/5352/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/io.h

index b84e1fb3fabf86bdbd81868b73418debf385eb22..3321dd5a8872d7014fcf7d8c167e603ca0d60143 100644 (file)
@@ -454,6 +454,11 @@ __BUILDIO(q, u64)
 #define readl_relaxed                  readl
 #define readq_relaxed                  readq
 
+#define writeb_relaxed                 writeb
+#define writew_relaxed                 writew
+#define writel_relaxed                 writel
+#define writeq_relaxed                 writeq
+
 #define readb_be(addr)                                                 \
        __raw_readb((__force unsigned *)(addr))
 #define readw_be(addr)                                                 \