powerpc/powernv: Fix endian issues with OPAL async code
authorAnton Blanchard <anton@samba.org>
Fri, 28 Mar 2014 05:33:33 +0000 (16:33 +1100)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 7 Apr 2014 00:34:27 +0000 (10:34 +1000)
commitbb4398e1de739a13e06589fc04cbb2267ba59800
treef2e47b907f4b5275ee708988ca7899349424f4b7
parent32b941b79394435c1b6d688abfe762c5b3c82afa
powerpc/powernv: Fix endian issues with OPAL async code

OPAL defines opal_msg as a big endian struct so we have to
byte swap it on little endian 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-async.c
arch/powerpc/platforms/powernv/opal-sensor.c
arch/powerpc/platforms/powernv/opal-sysparam.c
arch/powerpc/platforms/powernv/opal.c