linux-mips
[Top] [All Lists]

Re: [PATCH] MIPS: define write{b,w,l,q}_relaxed

To: linux-mips@linux-mips.org
Subject: Re: [PATCH] MIPS: define write{b,w,l,q}_relaxed
From: John Crispin <john@phrozen.org>
Date: Fri, 31 May 2013 16:44:35 +0200
In-reply-to: <1370009264-22018-1-git-send-email-f.fainelli@gmail.com>
List-archive: <http://www.linux-mips.org/archives/linux-mips/>
List-help: <mailto:ecartis@linux-mips.org?Subject=help>
List-id: linux-mips <linux-mips.eddie.linux-mips.org>
List-owner: <mailto:ralf@linux-mips.org>
List-post: <mailto:linux-mips@linux-mips.org>
List-software: Ecartis version 1.0.0
List-subscribe: <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips>
List-unsubscribe: <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <1370009264-22018-1-git-send-email-f.fainelli@gmail.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130116 Icedove/10.0.12
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)                                                        
\


<Prev in Thread] Current Thread [Next in Thread>