Linux MIPS Architecture development
 help / color / mirror / Atom feed
* [PATCH] MIPS: define write{b,w,l,q}_relaxed
@ 2013-05-31 14:07 Florian Fainelli
  2013-05-31 14:44 ` John Crispin
  0 siblings, 1 reply; 3+ messages in thread
From: Florian Fainelli @ 2013-05-31 14:07 UTC (permalink / raw)
  To: linux-mips; +Cc: ralf, cernekee, jogo, blogic, 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.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
---
 arch/mips/include/asm/io.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/mips/include/asm/io.h b/arch/mips/include/asm/io.h
index b7e5985..ca42c68 100644
--- a/arch/mips/include/asm/io.h
+++ b/arch/mips/include/asm/io.h
@@ -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)							\
-- 
1.8.1.2

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-06-04  9:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-31 14:07 [PATCH] MIPS: define write{b,w,l,q}_relaxed Florian Fainelli
2013-05-31 14:44 ` John Crispin
2013-06-04  9:37   ` Florian Fainelli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox