powerpc/pseries: Add helper to get PLPKS password length
authorRussell Currey <ruscur@russell.cc>
Fri, 10 Feb 2023 08:03:57 +0000 (19:03 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 12 Feb 2023 11:12:39 +0000 (22:12 +1100)
commit9ee76bd5c7e39b622660cc14833ead1967f2038d
tree6278695f1f057a1edfdcd62e35c68ecb273639cb
parentca4f1d221c84fe364517b15af65f3f0e4ce9719a
powerpc/pseries: Add helper to get PLPKS password length

Add helper function to get the PLPKS password length. This will be used
in a later patch to support passing the password between kernels over
kexec.

Signed-off-by: Russell Currey <ruscur@russell.cc>
Signed-off-by: Andrew Donnellan <ajd@linux.ibm.com>
Reviewed-by: Stefan Berger <stefanb@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20230210080401.345462-23-ajd@linux.ibm.com
arch/powerpc/include/asm/plpks.h
arch/powerpc/platforms/pseries/plpks.c