Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752433AbbHQDiY (ORCPT ); Sun, 16 Aug 2015 23:38:24 -0400 Received: from [216.4.250.2] ([216.4.250.2]:33997 "EHLO p2012.superclick.com" rhost-flags-FAIL-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1750994AbbHQDiW (ORCPT ); Sun, 16 Aug 2015 23:38:22 -0400 X-Greylist: delayed 366 seconds by postgrey-1.27 at vger.kernel.org; Sun, 16 Aug 2015 23:38:21 EDT Date: Sun, 16 Aug 2015 20:30:47 -0700 From: Mark Brown To: Russell King - ARM Linux Cc: Arnd Bergmann , Leilk Liu , Mark Rutland , devicetree@vger.kernel.org, Sascha Hauer , linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org, linux-mediatek@lists.infradead.org, Matthias Brugger , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] spi: Mediatek: fix endian warnings Message-ID: <20150817033047.GM10748@sirena.org.uk> References: <1439289789-29026-1-git-send-email-leilk.liu@mediatek.com> <1871097.B3YgX5rNy0@wuerfel> <20150816140639.GE7557@n2100.arm.linux.org.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="jvwwc3lboJHenLjr" Content-Disposition: inline In-Reply-To: <20150816140639.GE7557@n2100.arm.linux.org.uk> X-Cookie: if it GLISTENS, gobble it!! User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1334 Lines: 37 --jvwwc3lboJHenLjr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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. --jvwwc3lboJHenLjr Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJV0VViAAoJECTWi3JdVIfQx5QH/jLWJxe/sJWv1Wr/womw+fEJ yssGpSdtxY8i7EL5o8PTPGPRk40C3ciLmzqCLjm8O7EmKxh1cRnNmkhaadLbE10I xroHJM9jct4t+fnnFVlpp8vL13rP9+i3QKfdxSL1yPYpKQh3cHAB8xbJk6EDRiZY KcrbsZ4eSpv7W2fIbfeFulMRrmx3AVNXpwRldMXFia0Cp3UUFnUNPPPPxIrq18b+ MItZdtJKEMuQl38HRvPr1rckJZ/+WTLv7Gg6xCFIq8DgOI0mbk9z2NtSWLWUDB/y tdWVTWEjHtx7CZ1mhm7i7hV1Oa5yqsY+JhBJt3Ix6Ae+LA/0O4HLVSfPpYguJ6s= =RpzB -----END PGP SIGNATURE----- --jvwwc3lboJHenLjr-- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/