[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <tip-4806c87f017d8a7003ad34886f58c3b9e023df6a@git.kernel.org>
Date: Tue, 31 Mar 2015 00:23:06 -0700
From: tip-bot for Ben Dooks <tipbot@...or.com>
To: linux-tip-commits@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, mingo@...nel.org,
daniel.lezcano@...aro.org, linux-arm-kernel@...ts.infradead.org,
hpa@...or.com, nicolas.ferre@...el.com, ben.dooks@...ethink.co.uk,
plagnioj@...osoft.com, linux@...im.org.za, tglx@...utronix.de
Subject: [tip:timers/core] clocksource/drivers/at91: Fix IO endianness
Commit-ID: 4806c87f017d8a7003ad34886f58c3b9e023df6a
Gitweb: http://git.kernel.org/tip/4806c87f017d8a7003ad34886f58c3b9e023df6a
Author: Ben Dooks <ben.dooks@...ethink.co.uk>
AuthorDate: Mon, 30 Mar 2015 22:17:09 +0200
Committer: Ingo Molnar <mingo@...nel.org>
CommitDate: Tue, 31 Mar 2015 09:15:58 +0200
clocksource/drivers/at91: Fix IO endianness
Fix the use of __raw IO accessor with the readl/writel_relaxed()
versions to allow the code to be used on a system running in big
endian mode.
Signed-off-by: Ben Dooks <ben.dooks@...ethink.co.uk>
Signed-off-by: Daniel Lezcano <daniel.lezcano@...aro.org>
Acked-by: Nicolas Ferre <nicolas.ferre@...el.com>
Cc: Andrew Victor <linux@...im.org.za>
Cc: Jean-Christophe Plagniol-Villard <plagnioj@...osoft.com>
Cc: Linux ARM Kernel <linux-arm-kernel@...ts.infradead.org>
Cc: Thomas Gleixner <tglx@...utronix.de>
Cc: digetx@...il.com
Cc: hdegoede@...hat.com
Cc: laurent.pinchart+renesas@...asonboard.com
Cc: maxime.ripard@...e-electrons.com
Cc: viresh.kumar@...aro.org
Link: http://lkml.kernel.org/r/1427746633-9137-7-git-send-email-daniel.lezcano@linaro.org
Signed-off-by: Ingo Molnar <mingo@...nel.org>
---
drivers/clocksource/timer-atmel-pit.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/clocksource/timer-atmel-pit.c b/drivers/clocksource/timer-atmel-pit.c
index b5b4d45..c0304ff 100644
--- a/drivers/clocksource/timer-atmel-pit.c
+++ b/drivers/clocksource/timer-atmel-pit.c
@@ -61,12 +61,12 @@ static inline struct pit_data *clkevt_to_pit_data(struct clock_event_device *clk
static inline unsigned int pit_read(void __iomem *base, unsigned int reg_offset)
{
- return __raw_readl(base + reg_offset);
+ return readl_relaxed(base + reg_offset);
}
static inline void pit_write(void __iomem *base, unsigned int reg_offset, unsigned long value)
{
- __raw_writel(value, base + reg_offset);
+ writel_relaxed(value, base + reg_offset);
}
/*
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists