[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20150817033047.GM10748@sirena.org.uk>
Date: Sun, 16 Aug 2015 20:30:47 -0700
From: Mark Brown <broonie@...nel.org>
To: Russell King - ARM Linux <linux@....linux.org.uk>
Cc: Arnd Bergmann <arnd@...db.de>, Leilk Liu <leilk.liu@...iatek.com>,
Mark Rutland <mark.rutland@....com>,
devicetree@...r.kernel.org, Sascha Hauer <s.hauer@...gutronix.de>,
linux-kernel@...r.kernel.org, linux-spi@...r.kernel.org,
linux-mediatek@...ts.infradead.org,
Matthias Brugger <matthias.bgg@...il.com>,
linux-arm-kernel@...ts.infradead.org
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.
Download attachment "signature.asc" of type "application/pgp-signature" (474 bytes)
Powered by blists - more mailing lists