]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
powerpc/powernv: Properly fix LPC debugfs endianness
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 30 Oct 2014 05:19:13 +0000 (16:19 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Nov 2014 18:10:39 +0000 (10:10 -0800)
commit67dc5fdb8adca284a155270e7a28eee382a4ddce
tree639e32cc025b0c35706ee8535e5621c4eea2903d
parent1b0d6e46e134a07e33743db3f24d91b315abd36f
powerpc/powernv: Properly fix LPC debugfs endianness

commit 325e4114043469e5f9923d902b4d30bcc2be8163 upstream.

Endian is hard, especially when I designed a stupid FW interface, and
I should know better... oh well, this is attempt #2 at fixing this
properly. This time it seems to work with all access sizes and I
can run my flashing tool (which exercises all sort of access sizes
and types to access the SPI controller in the BMC) just fine.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/platforms/powernv/opal-lpc.c