Re: [PATCH] spi: Mediatek: fix endian warnings

From: Mark Brown
Date: Sun Aug 16 2015 - 23:38:28 EST


On Sun, Aug 16, 2015 at 03:06:39PM +0100, Russell King - ARM Linux wrote:

> All writel() implementations take a CPU number and write it in little
> endian format. Hence, writel() almost always uses cpu_to_le32()
> internally.

I think the reason this keeps coming up is that people aren't expecting
writel() to be doing endianness conversion, it's easy to get caught out
by it.

Attachment: signature.asc
Description: Digital signature