[PATCH 1/2] powerpc/powernv: Fix endian issues with OPAL async code

2014-03-27 Thread Anton Blanchard
Byteswap struct opal_msg in one place instead of requiring all the callers to do it. Signed-off-by: Anton Blanchard an...@samba.org --- Index: b/arch/powerpc/include/asm/opal.h === --- a/arch/powerpc/include/asm/opal.h +++

Re: [PATCH 1/2] powerpc/powernv: Fix endian issues with OPAL async code

2014-03-27 Thread Benjamin Herrenschmidt
On Fri, 2014-03-28 at 09:17 +1100, Anton Blanchard wrote: Byteswap struct opal_msg in one place instead of requiring all the callers to do it. This will clash with us making opal.h something clean and identical between OPAL and clients. Can you rename the converted version instead ? (yeah I

[PATCH 1/2] powerpc/powernv: Fix endian issues with OPAL async code

2014-03-27 Thread Anton Blanchard
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 an...@samba.org --- Index: b/arch/powerpc/include/asm/opal.h === --- a/arch/powerpc/include/asm/opal.h