powerpc/powernv: Create OPAL sglist helper functions and fix endian issues
authorAnton Blanchard <anton@samba.org>
Tue, 22 Apr 2014 05:01:26 +0000 (15:01 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 28 Apr 2014 03:11:23 +0000 (13:11 +1000)
commit3441f04b4b62758a798f9fbbf2047dfedf0329a5
tree57dcaa15ea0d4d4f7bbd6479fd6393b4bbf3f322
parent14ad0c58d5df6e5911a5413abdc2a9be6a8acb51
powerpc/powernv: Create OPAL sglist helper functions and fix endian issues

We have two copies of code that creates an OPAL sg list. Consolidate
these into a common set of helpers and fix the endian issues.

The flash interface embedded a version number in the num_entries
field, whereas the dump interface did did not. Since versioning
wasn't added to the flash interface and it is impossible to add
this in a backwards compatible way, just remove it.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/opal.h
arch/powerpc/platforms/powernv/opal-dump.c
arch/powerpc/platforms/powernv/opal-flash.c
arch/powerpc/platforms/powernv/opal.c