summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include
diff options
context:
space:
mode:
authorAnton Blanchard <anton@samba.org>2013-12-13 15:53:43 +1100
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2013-12-13 15:53:59 +1100
commit01a9dbccbdfc7a93950b791405e476c510f73ab0 (patch)
tree7a16519c620adeb98dbbdbf8ec0d0f40bad49ff3 /arch/powerpc/include
parenta29e30efa3a1b253fd1252731aa774a3544c5c3b (diff)
downloadlinux-stable-01a9dbccbdfc7a93950b791405e476c510f73ab0.tar.gz
linux-stable-01a9dbccbdfc7a93950b791405e476c510f73ab0.tar.bz2
linux-stable-01a9dbccbdfc7a93950b791405e476c510f73ab0.zip
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>
Diffstat (limited to 'arch/powerpc/include')
-rw-r--r--arch/powerpc/include/asm/opal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/include/asm/opal.h b/arch/powerpc/include/asm/opal.h
index 033c06be1d84..522f50c6c146 100644
--- a/arch/powerpc/include/asm/opal.h
+++ b/arch/powerpc/include/asm/opal.h
@@ -720,7 +720,7 @@ int64_t opal_pci_next_error(uint64_t phb_id, uint64_t *first_frozen_pe,
int64_t opal_pci_poll(uint64_t phb_id);
int64_t opal_return_cpu(void);
-int64_t opal_xscom_read(uint32_t gcid, uint32_t pcb_addr, uint64_t *val);
+int64_t opal_xscom_read(uint32_t gcid, uint32_t pcb_addr, __be64 *val);
int64_t opal_xscom_write(uint32_t gcid, uint32_t pcb_addr, uint64_t val);
int64_t opal_lpc_write(uint32_t chip_id, enum OpalLPCAddressType addr_type,