Skip to contentSkip to conversation

clk: at91: change to using endian agnositc IO

PATCH Applied Ben Dooks 2 participants 2 messages Mar 26, 2015 – Apr 11, 2015

Subsystems (2)
lore
Share & tools
lore

Ben Dooks

author
#0 lore raw

PATCH 1/1 clk: at91: change to using endian agnositc IO

Change to using endian agnostic _relaxed IO accessors instead of __raw

--
CC: Andrew Victor <[email protected]>
CC: Nicolas Ferre <[email protected]>
CC: Jean-Christophe Plagniol-Villard <[email protected]>
CC: Mike Turquette <[email protected]> (maintainer:COMMON CLK FRAMEWORK)
CC: Stephen Boyd <[email protected]> (maintainer:COMMON CLK FRAMEWORK)
CC: [email protected] (open list:COMMON CLK FRAMEWORK)

---
 include/linux/clk/at91_pmc.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
include/linux/clk/at91_pmc.h +2 -2
index c8e3b3d..7669f76 100644
@@ -20,10 +20,10 @@
 extern void __iomem *at91_pmc_base;
 
 #define at91_pmc_read(field) \
-	__raw_readl(at91_pmc_base + field)
+	readl_relaxed(at91_pmc_base + field)
 
 #define at91_pmc_write(field, value) \
-	__raw_writel(value, at91_pmc_base + field)
+	writel_relaxed(value, at91_pmc_base + field)
 #else
 .extern at91_pmc_base
 #endif
Signature · 1 line
2.1.4
#1 lore raw

Quoting Ben Dooks (2015-03-26 06:07:29)

Quoted 3 lines

Change to using endian agnostic _relaxed IO accessors instead of __raw

Applied.

Regards,
Mike

Quoted 31 lines

--
CC: Andrew Victor <[email protected]>
CC: Nicolas Ferre <[email protected]>
CC: Jean-Christophe Plagniol-Villard <[email protected]>
CC: Mike Turquette <[email protected]> (maintainer:COMMON CLK FRAMEWORK)
CC: Stephen Boyd <[email protected]> (maintainer:COMMON CLK FRAMEWORK)
CC: [email protected] (open list:COMMON CLK FRAMEWORK)

---
 include/linux/clk/at91_pmc.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
include/linux/clk/at91_pmc.h +2 -2
index c8e3b3d..7669f76 100644
@@ -20,10 +20,10 @@
 extern void __iomem *at91_pmc_base;
 
 #define at91_pmc_read(field) \
-       __raw_readl(at91_pmc_base + field)
+       readl_relaxed(at91_pmc_base + field)
 
 #define at91_pmc_write(field, value) \
-       __raw_writel(value, at91_pmc_base + field)
+       writel_relaxed(value, at91_pmc_base + field)
 #else
 .extern at91_pmc_base
 #endif
Signature · 1 line
2.1.4