From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ludovic Desroches Subject: Re: [PATCH 12/13] mmc: atmel-mci: use endian agnostic IO Date: Tue, 24 Mar 2015 15:08:47 +0100 Message-ID: <20150324140847.GC16642@odux.rfo.atmel.com> References: <1426693992-31163-1-git-send-email-ben.dooks@codethink.co.uk> <1426693992-31163-13-git-send-email-ben.dooks@codethink.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Return-path: Received: from eusmtp01.atmel.com ([212.144.249.243]:49885 "EHLO eusmtp01.atmel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752246AbbCXOJo (ORCPT ); Tue, 24 Mar 2015 10:09:44 -0400 Content-Disposition: inline In-Reply-To: <1426693992-31163-13-git-send-email-ben.dooks@codethink.co.uk> Sender: linux-mmc-owner@vger.kernel.org List-Id: linux-mmc@vger.kernel.org To: Ben Dooks Cc: linux-kernel@lists.codethink.co.uk, linux-arm-kernel@lists.infradead.org, Ludovic Desroches , Chris Ball , Ulf Hansson , linux-mmc@vger.kernel.org On Wed, Mar 18, 2015 at 03:53:11PM +0000, Ben Dooks wrote: > Change the __raw IO functions to endian agnostic relaxed ones to allow > the driver to function on big endian ARM systems. > > Signed-off-by: Ben Dooks Acked-by: Ludovic Desroches Thanks > -- > CC: Ludovic Desroches > CC: Chris Ball > CC: Ulf Hansson > CC: linux-mmc@vger.kernel.org > --- > drivers/mmc/host/atmel-mci-regs.h | 9 ++++++++- > 1 file changed, 8 insertions(+), 1 deletion(-) > > diff --git a/drivers/mmc/host/atmel-mci-regs.h b/drivers/mmc/host/atmel-mci-regs.h > index c97001e..711bb53 100644 > --- a/drivers/mmc/host/atmel-mci-regs.h > +++ b/drivers/mmc/host/atmel-mci-regs.h > @@ -135,10 +135,17 @@ > #define ATMCI_REGS_SIZE 0x100 > > /* Register access macros */ > -#define atmci_readl(port,reg) \ > +#ifdef CONFIG_AVR32 > +#define atmci_readl(port,reg) \ > __raw_readl((port)->regs + reg) > #define atmci_writel(port,reg,value) \ > __raw_writel((value), (port)->regs + reg) > +#else > +#define atmci_readl(port,reg) \ > + readl_relaxed((port)->regs + reg) > +#define atmci_writel(port,reg,value) \ > + writel_relaxed((value), (port)->regs + reg) > +#endif > > /* On AVR chips the Peripheral DMA Controller is not connected to MCI. */ > #ifdef CONFIG_AVR32 > -- > 2.1.4 >