Commit 45594c68 authored by Dmitry Osipenko's avatar Dmitry Osipenko Committed by Joerg Roedel

memory: tegra: Use relaxed versions of readl/writel

There is no need for inserting of memory barriers to access registers of
Memory Controller. Hence use the relaxed versions of the accessors.
Signed-off-by: default avatarDmitry Osipenko <digetx@gmail.com>
Acked-by: default avatarThierry Reding <treding@nvidia.com>
Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>
parent 59cd046f
...@@ -26,13 +26,13 @@ ...@@ -26,13 +26,13 @@
static inline u32 mc_readl(struct tegra_mc *mc, unsigned long offset) static inline u32 mc_readl(struct tegra_mc *mc, unsigned long offset)
{ {
return readl(mc->regs + offset); return readl_relaxed(mc->regs + offset);
} }
static inline void mc_writel(struct tegra_mc *mc, u32 value, static inline void mc_writel(struct tegra_mc *mc, u32 value,
unsigned long offset) unsigned long offset)
{ {
writel(value, mc->regs + offset); writel_relaxed(value, mc->regs + offset);
} }
extern const struct tegra_mc_reset_ops terga_mc_reset_ops_common; extern const struct tegra_mc_reset_ops terga_mc_reset_ops_common;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment