From mboxrd@z Thu Jan 1 00:00:00 1970 From: nicolas.ferre@atmel.com (Nicolas Ferre) Date: Mon, 23 Mar 2015 12:27:47 +0100 Subject: [PATCH 06/13] ARM: at91: PIT: make IO endian agnostic In-Reply-To: <1426693992-31163-7-git-send-email-ben.dooks@codethink.co.uk> References: <1426693992-31163-1-git-send-email-ben.dooks@codethink.co.uk> <1426693992-31163-7-git-send-email-ben.dooks@codethink.co.uk> Message-ID: <550FF8B3.2080708@atmel.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org 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? > 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); > } > > /* > -- Nicolas Ferre From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752323AbbCWL1v (ORCPT ); Mon, 23 Mar 2015 07:27:51 -0400 Received: from eusmtp01.atmel.com ([212.144.249.243]:37803 "EHLO eusmtp01.atmel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752013AbbCWL1u (ORCPT ); Mon, 23 Mar 2015 07:27:50 -0400 Message-ID: <550FF8B3.2080708@atmel.com> Date: Mon, 23 Mar 2015 12:27:47 +0100 From: Nicolas Ferre Organization: atmel User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Ben Dooks , , Daniel Lezcano CC: , 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> In-Reply-To: <1426693992-31163-7-git-send-email-ben.dooks@codethink.co.uk> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.161.30.18] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? > 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); > } > > /* > -- Nicolas Ferre