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>
Showing
- arch/powerpc/include/asm/opal.h 9 additions, 5 deletionsarch/powerpc/include/asm/opal.h
- arch/powerpc/platforms/powernv/opal-dump.c 2 additions, 79 deletionsarch/powerpc/platforms/powernv/opal-dump.c
- arch/powerpc/platforms/powernv/opal-flash.c 2 additions, 104 deletionsarch/powerpc/platforms/powernv/opal-flash.c
- arch/powerpc/platforms/powernv/opal.c 63 additions, 0 deletionsarch/powerpc/platforms/powernv/opal.c
Loading
Please register or sign in to comment