]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/powernv: Fix endian bug in LPC bus debugfs accessors
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 3 Oct 2014 07:12:25 +0000 (17:12 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 7 Oct 2014 05:01:18 +0000 (16:01 +1100)
commit4dc0805ca58df94e1e6dd72459bbad98b2f1db84
tree135be483b54c55629ed035347a05d788d87f4e3a
parent8197e5ac423b999f3a6eab5e2aa17b64d308bb80
powerpc/powernv: Fix endian bug in LPC bus debugfs accessors

When reading from the LPC, the OPAL FW calls return the value via pointer
to a uint32_t which is always returned big endian. Our internal inb/outb
implementation byteswaps that fine but our debugfs code is still broken.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
CC: <stable@vger.kernel.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/powernv/opal-lpc.c