powerpc/powernv: Fix endian issue in opal_xscom_read
authorAnton Blanchard <anton@samba.org>
Fri, 13 Dec 2013 04:53:43 +0000 (15:53 +1100)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 13 Dec 2013 04:53:59 +0000 (15:53 +1100)
commit01a9dbccbdfc7a93950b791405e476c510f73ab0
tree7a16519c620adeb98dbbdbf8ec0d0f40bad49ff3
parenta29e30efa3a1b253fd1252731aa774a3544c5c3b
powerpc/powernv: Fix endian issue in opal_xscom_read

opal_xscom_read uses a pointer to return the data so we need
to byteswap it on LE builds.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/opal.h
arch/powerpc/platforms/powernv/opal-xscom.c