]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcbdf5bcd2a71ef4ba19a9120d1f47d8e86be7e2b
tree57dcaa15ea0d4d4f7bbd6479fd6393b4bbf3f322
parent3cb37ac841eedddcc0a1b29019b22d804cb6cfae
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