MIPS: define write{b,w,l,q}_relaxed
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
@@ -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
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.Signed-off-by Florian Fainelli<[email protected]>
Quoted 20 lines
--- arch/mips/include/asm/io.h | 5 +++++ 1 file changed, 5 insertions(+)arch/mips/include/asm/io.h +5
-0@@ -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) \
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.Signed-off-by Florian Fainelli<[email protected]>Acked-by John Crispin <[email protected]>
This probably needs consolidation at the include/asm-generic/io.h level, quite a lot of architectures have the same definition as MIPS here.