]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/papr_scm: Remove endian conversions
authorOliver O'Halloran <oohall@gmail.com>
Thu, 6 Dec 2018 15:17:11 +0000 (02:17 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 9 Dec 2018 10:32:30 +0000 (21:32 +1100)
commitea118bf2e6cb04acf42768e5985c96eef0f49cad
tree0c5f90d735d2013f6b71773432fd45a456de76f3
parenta935831fdaa6417d96deaadc19960a5170171348
powerpc/papr_scm: Remove endian conversions

The return values of a h-call are returned in the CPU registers and
written to the provided buffer by the plpar_hcall() wrapper. As a result
the values written to memory are always in the native endian and should
not be byte swapped.

The inital implementation of the H-Call interface was done in qemu and
the returned values were byte swapped unnecessarily in both the
hypervisor and in the driver so this was only noticed when bringing up
the PowerVM implementation.

Fixes: 3f927cd9ef76 ("powerpc/pseries: Add driver for PAPR SCM regions")
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/pseries/papr_scm.c