Re: [PATCH] watchdog: at91sam9: use endian agnostic IO

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 26 Mar 2015 14:34:14 +0000
Ben Dooks <ben.dooks@xxxxxxxxxxxxxxx> wrote:

> Use endian agnostic IO functions for the watchdog driver for when it
> is enabled on ATSAMA5D36 devices running in big endian.
> 
> Signed-off-by: Ben Dooks <ben.dooks@xxxxxxxxxxxxxxx>

Acked-by: Boris Brezillon <boris.brezillon@xxxxxxxxxxxxxxxxxx>

> ---
> CC: Boris Brezillon <boris.brezillon@xxxxxxxxxxxxxxxxxx>
> CC: Guenter Roeck <linux@xxxxxxxxxxxx>
> CC: Nicolas Ferre <nicolas.ferre@xxxxxxxxx>
> CC: Wim Van Sebroeck <wim@xxxxxxxxx>
> CC: linux-watchdog@xxxxxxxxxxxxxxx
> CC: Andrew Victor <linux@xxxxxxxxxxxx>
> CC: Nicolas Ferre <nicolas.ferre@xxxxxxxxx>
> CC: Jean-Christophe Plagniol-Villard <plagnioj@xxxxxxxxxxxx>
> ---
>  drivers/watchdog/at91sam9_wdt.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/watchdog/at91sam9_wdt.c b/drivers/watchdog/at91sam9_wdt.c
> index 1443b3c..e4698f7 100644
> --- a/drivers/watchdog/at91sam9_wdt.c
> +++ b/drivers/watchdog/at91sam9_wdt.c
> @@ -40,9 +40,9 @@
>  #define DRV_NAME "AT91SAM9 Watchdog"
>  
>  #define wdt_read(wdt, field) \
> -	__raw_readl((wdt)->base + (field))
> +	readl_relaxed((wdt)->base + (field))
>  #define wdt_write(wtd, field, val) \
> -	__raw_writel((val), (wdt)->base + (field))
> +	writel_relaxed((val), (wdt)->base + (field))
>  
>  /* AT91SAM9 watchdog runs a 12bit counter @ 256Hz,
>   * use this to convert a watchdog



-- 
Boris Brezillon, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
--
To unsubscribe from this list: send the line "unsubscribe linux-watchdog" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux