Re: [PATCH 2/2] m32r: Add missing big-endian I/O accessors
From: Arnd Bergmann
Date: Thu Nov 27 2014 - 12:53:26 EST
On Thursday 27 November 2014 09:46:44 Kevin Cernekee wrote:
> #define iowrite32 writel
>
> +#define ioread16be(addr) be16_to_cpu(readw(addr))
> +#define ioread32be(addr) be32_to_cpu(readl(addr))
> +#define iowrite16be(val, addr) writew(cpu_to_be16(val), addr)
> +#define iowrite32be(val, addr) writel(cpu_to_be32(val), addr)
> +
>
m32r can be either little-endian or big-endian, so these need to
unconditionally swap instead.
Arnd
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/