powerpc/powernv: Fix OPAL LPC access in Little Endian
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 13 Dec 2013 04:56:06 +0000 (15:56 +1100)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 13 Dec 2013 04:55:15 +0000 (15:55 +1100)
commit803c2d2f84da9dc2619449994af34d27148ab20d
tree95b592ae6de256b67c5a7efe542aa3ef2286c374
parent01a9dbccbdfc7a93950b791405e476c510f73ab0
powerpc/powernv: Fix OPAL LPC access in Little Endian

We are passing pointers to the firmware for reads, we need to properly
convert the result as OPAL is always BE.

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