summaryrefslogtreecommitdiff
path: root/arch/powerpc/platforms/pseries/plpks.c
diff options
context:
space:
mode:
authorNayna Jain <nayna@linux.ibm.com>2022-11-06 23:58:35 +0300
committerMichael Ellerman <mpe@ellerman.id.au>2022-11-24 15:31:50 +0300
commitaf223e1728c448073d1e12fe464bf344310edeba (patch)
treeba8dcf6f46a5f3cd54d3098ab035a6dd989bf576 /arch/powerpc/platforms/pseries/plpks.c
parent2330757e0be0acad88852e211dcd6106390a729b (diff)
downloadlinux-af223e1728c448073d1e12fe464bf344310edeba.tar.xz
powerpc/pseries: Fix the H_CALL error code in PLPKS driver
PAPR Spec defines H_P1 actually as H_PARAMETER and maps H_ABORTED to a different numerical value. Fix the error codes as per PAPR Specification. Fixes: 2454a7af0f2a ("powerpc/pseries: define driver for Platform KeyStore") Signed-off-by: Nayna Jain <nayna@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20221106205839.600442-3-nayna@linux.ibm.com
Diffstat (limited to 'arch/powerpc/platforms/pseries/plpks.c')
-rw-r--r--arch/powerpc/platforms/pseries/plpks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/pseries/plpks.c b/arch/powerpc/platforms/pseries/plpks.c
index f4b5b5a64db3..32ce4d780d8f 100644
--- a/arch/powerpc/platforms/pseries/plpks.c
+++ b/arch/powerpc/platforms/pseries/plpks.c
@@ -75,7 +75,7 @@ static int pseries_status_to_err(int rc)
case H_FUNCTION:
err = -ENXIO;
break;
- case H_P1:
+ case H_PARAMETER:
case H_P2:
case H_P3:
case H_P4: