• Tyrel Datwyler's avatar
    powerpc/pseries: Little endian fixes for post mobility device tree update · f6ff0414
    Tyrel Datwyler authored
    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: default avatarTyrel Datwyler <tyreld@linux.vnet.ibm.com>
    Cc: Nathan Fontenot <nfont@linux.vnet.ibm.com>
    Cc: Cyril Bur <cyrilbur@gmail.com>
    Cc: stable@vger.kernel.org
    Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
    f6ff0414
mobility.c 7.55 KB