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

* Re: [PATCH] MIPS: define write{b,w,l,q}_relaxed
  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
  0 siblings, 1 reply; 3+ messages in thread
From: John Crispin @ 2013-05-31 14:44 UTC (permalink / raw)
  To: linux-mips

On 31/05/13 16:07, Florian Fainelli wrote:
> 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>



> ---
>   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)							\

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

* Re: [PATCH] MIPS: define write{b,w,l,q}_relaxed
  2013-05-31 14:44 ` John Crispin
@ 2013-06-04  9:37   ` Florian Fainelli
  0 siblings, 0 replies; 3+ messages in thread
From: Florian Fainelli @ 2013-06-04  9:37 UTC (permalink / raw)
  To: John Crispin; +Cc: Linux-MIPS

2013/5/31 John Crispin <john@phrozen.org>:
> On 31/05/13 16:07, Florian Fainelli wrote:
>>
>> 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>

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

^ permalink raw reply	[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