Skip to contentSkip to conversation

MIPS: define write{b,w,l,q}_relaxed

PATCH In review Florian Fainelli 3 participants 3 messages May 31, 2013 – Jun 4, 2013 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MIPS: define write{b,w,l,q}_relaxed

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.

---
 arch/mips/include/asm/io.h | 5 +++++
 1 file changed, 5 insertions(+)
arch/mips/include/asm/io.h +5 -0
index b7e5985..ca42c68 100644
@@ -449,6 +449,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)							\
Signature · 1 line
1.8.1.2
Acked-by on v1 1/1
#1 lore raw
Quoted 5 lines · Florian Fainelli

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.

Quoted 20 lines
---
  arch/mips/include/asm/io.h | 5 +++++
  1 file changed, 5 insertions(+)
arch/mips/include/asm/io.h +5 -0
index b7e5985..ca42c68 100644
@@ -449,6 +449,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)							\
#2 lore raw

2013/5/31 John Crispin <[email protected]>:

Quoted 10 lines · Florian Fainelli
Quoted 6 lines

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.

This probably needs consolidation at the include/asm-generic/io.h level, quite a lot of architectures have the same definition as MIPS here.