From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752138AbbCZJyy (ORCPT ); Thu, 26 Mar 2015 05:54:54 -0400 Received: from mail-wi0-f177.google.com ([209.85.212.177]:36103 "EHLO mail-wi0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751042AbbCZJyu (ORCPT ); Thu, 26 Mar 2015 05:54:50 -0400 Message-ID: <5513D766.8020908@linaro.org> Date: Thu, 26 Mar 2015 10:54:46 +0100 From: Daniel Lezcano User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Nicolas Ferre , Ben Dooks , linux-arm-kernel@lists.infradead.org CC: linux-kernel@lists.codethink.co.uk, Thomas Gleixner , Linux Kernel , Andrew Victor , Jean-Christophe Plagniol-Villard , Alexandre Belloni , Boris BREZILLON Subject: Re: [PATCH 06/13] ARM: at91: PIT: make IO endian agnostic References: <1426693992-31163-1-git-send-email-ben.dooks@codethink.co.uk> <1426693992-31163-7-git-send-email-ben.dooks@codethink.co.uk> <550FF8B3.2080708@atmel.com> In-Reply-To: <550FF8B3.2080708@atmel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/23/2015 12:27 PM, Nicolas Ferre wrote: > Le 18/03/2015 16:53, Ben Dooks a écrit : >> 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. >> >> Signed-off-by: Ben Dooks >> -- >> CC: Daniel Lezcano >> CC: Thomas Gleixner >> CC: Linux Kernel >> CC: Linux ARM Kernel >> CC: Andrew Victor >> CC: Nicolas Ferre > > Yes: > Acked-by: Nicolas Ferre > > Daniel, do you want to take it? Yep. >> CC: Jean-Christophe Plagniol-Villard >> --- >> 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); >> } >> >> /* >> > > -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog