]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Fix endianness of flash_block_list in rtas_flash
authorThomas Falcon <tlfalcon@linux.vnet.ibm.com>
Fri, 25 Jul 2014 17:47:42 +0000 (12:47 -0500)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 28 Jul 2014 01:30:54 +0000 (11:30 +1000)
commit11162dc114a6aa0c7bd06441d5c55cce3b8d1c70
tree1b1a3b1725a20a4cf3458a15561e8273b80f5f95
parentf42b2833a561e978dae5d6a73f243481fa4cea9e
powerpc: Fix endianness of flash_block_list in rtas_flash

The function rtas_flash_firmware passes the address of a data structure,
flash_block_list, when making the update-flash-64-and-reboot rtas call.
While the endianness of the address is handled correctly, the endianness
of the data is not.  This patch ensures that the data in flash_block_list
is big endian when passed to rtas on little endian hosts.

Signed-off-by: Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/rtas_flash.c