Messages in this thread | | | Date | Sun, 16 Aug 2015 20:30:47 -0700 | From | Mark Brown <> | Subject | Re: [PATCH] spi: Mediatek: fix endian warnings |
| |
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. [unhandled content-type:application/pgp-signature] | |