Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1da1f560 authored by Trilok Soni's avatar Trilok Soni
Browse files

arm: io: Add readb and writeb relaxed_no_log variants



readb and writeb relaxed_no_log variants are required for upcoming
memcpy_to/from_io optimization for the arm32.

Change-Id: I71de8c07e0b7e1be902e20636395d148450f26e4
Signed-off-by: default avatarTrilok Soni <tsoni@codeaurora.org>
parent 3e5d75b2
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -372,6 +372,7 @@ extern void _memset_io(volatile void __iomem *, int, size_t);
					__raw_readl(c)); __r; })
#define readq_relaxed(c) ({ u64 __r = le64_to_cpu((__force __le64) \
					__raw_readq(c)); __r; })
#define readb_relaxed_no_log(c)	({ u8 __r = __raw_readb_no_log(c); __r; })
#define readl_relaxed_no_log(c) ({ u32 __r = le32_to_cpu((__force __le32) \
					__raw_readl_no_log(c)); __r; })
#define readq_relaxed_no_log(c) ({ u64 __r = le64_to_cpu((__force __le64) \
@@ -382,6 +383,7 @@ extern void _memset_io(volatile void __iomem *, int, size_t);
#define writew_relaxed(v,c)	__raw_writew((__force u16) cpu_to_le16(v),c)
#define writel_relaxed(v,c)	__raw_writel((__force u32) cpu_to_le32(v),c)
#define writeq_relaxed(v,c)	__raw_writeq((__force u64) cpu_to_le64(v),c)
#define writeb_relaxed_no_log(v, c)	((void)__raw_writeb_no_log((v), (c)))
#define writel_relaxed_no_log(v, c) __raw_writel_no_log((__force u32) cpu_to_le32(v),c)
#define writeq_relaxed_no_log(v, c) __raw_writeq_no_log((__force u64) cpu_to_le64(v),c)