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

Commit d040a682 authored by Subbaraman Narayanamurthy's avatar Subbaraman Narayanamurthy
Browse files

arm64: io: Add {readl/writel}_relaxed_no_log variants for arm64



readl_relaxed and writel_relaxed logs into RTB which we don't want
to use for certain accesses. Hence adding the _no_log variants for
using in such places.

Change-Id: I4e3be21e4bf068f2ede0266e6e966d757b04449e
Signed-off-by: default avatarSubbaraman Narayanamurthy <subbaram@codeaurora.org>
parent 2931ae16
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -142,6 +142,8 @@ static inline u64 __raw_readq_no_log(const volatile void __iomem *addr)
#define writel_relaxed(v,c)	((void)__raw_writel((__force u32)cpu_to_le32(v),(c)))
#define writeq_relaxed(v,c)	((void)__raw_writeq((__force u64)cpu_to_le64(v),(c)))

#define readl_relaxed_no_log(c)	({ u32 __v = le32_to_cpu((__force __le32)__raw_readl_no_log(c)); __v; })
#define writel_relaxed_no_log(v,c)	((void)__raw_writel_no_log((__force u32)cpu_to_le32(v),(c)))
/*
 * I/O memory access primitives. Reads are ordered relative to any
 * following Normal memory access. Writes are ordered relative to any prior