diff options
author | Tyrel Datwyler <tyreld@linux.vnet.ibm.com> | 2015-03-04 11:59:33 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-04-13 14:03:03 +0200 |
commit | 5bd657f3ac9ef3b8d9e4034675cd7d60a7cb57ef (patch) | |
tree | beaedb0ea11b4c826928738bebd05ddaa2324389 /arch/powerpc/boot/dts/fsl/pq3-etsec2-1.dtsi | |
parent | 7edf68cf19a58342ef270621438a5e8c1045c34b (diff) | |
download | lwn-5bd657f3ac9ef3b8d9e4034675cd7d60a7cb57ef.tar.gz lwn-5bd657f3ac9ef3b8d9e4034675cd7d60a7cb57ef.zip |
powerpc/pseries: Little endian fixes for post mobility device tree update
commit f6ff04149637723261aa4738958b0098b929ee9e upstream.
We currently use the device tree update code in the kernel after resuming
from a suspend operation to re-sync the kernels view of the device tree with
that of the hypervisor. The code as it stands is not endian safe as it relies
on parsing buffers returned by RTAS calls that thusly contains data in big
endian format.
This patch annotates variables and structure members with __be types as well
as performing necessary byte swaps to cpu endian for data that needs to be
parsed.
Signed-off-by: Tyrel Datwyler <tyreld@linux.vnet.ibm.com>
Cc: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Cc: Cyril Bur <cyrilbur@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/powerpc/boot/dts/fsl/pq3-etsec2-1.dtsi')
0 files changed, 0 insertions, 0 deletions