]> 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)
commit7fc0368ca2fc2d377d56d721c157fd5a108add92
tree57dcaa15ea0d4d4f7bbd6479fd6393b4bbf3f322
parenteaea29891799af864d89f8c6294edc058d3e99df
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