Commit af223e17 authored by Nayna Jain's avatar Nayna Jain Committed by Michael Ellerman

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: 2454a7af ("powerpc/pseries: define driver for Platform KeyStore")
Signed-off-by: default avatarNayna Jain <nayna@linux.ibm.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20221106205839.600442-3-nayna@linux.ibm.com
parent 2330757e
...@@ -79,7 +79,7 @@ ...@@ -79,7 +79,7 @@
#define H_NOT_ENOUGH_RESOURCES -44 #define H_NOT_ENOUGH_RESOURCES -44
#define H_R_STATE -45 #define H_R_STATE -45
#define H_RESCINDED -46 #define H_RESCINDED -46
#define H_P1 -54 #define H_ABORTED -54
#define H_P2 -55 #define H_P2 -55
#define H_P3 -56 #define H_P3 -56
#define H_P4 -57 #define H_P4 -57
...@@ -100,7 +100,6 @@ ...@@ -100,7 +100,6 @@
#define H_COP_HW -74 #define H_COP_HW -74
#define H_STATE -75 #define H_STATE -75
#define H_IN_USE -77 #define H_IN_USE -77
#define H_ABORTED -78
#define H_UNSUPPORTED_FLAG_START -256 #define H_UNSUPPORTED_FLAG_START -256
#define H_UNSUPPORTED_FLAG_END -511 #define H_UNSUPPORTED_FLAG_END -511
#define H_MULTI_THREADS_ACTIVE -9005 #define H_MULTI_THREADS_ACTIVE -9005
......
...@@ -75,7 +75,7 @@ static int pseries_status_to_err(int rc) ...@@ -75,7 +75,7 @@ static int pseries_status_to_err(int rc)
case H_FUNCTION: case H_FUNCTION:
err = -ENXIO; err = -ENXIO;
break; break;
case H_P1: case H_PARAMETER:
case H_P2: case H_P2:
case H_P3: case H_P3:
case H_P4: case H_P4:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment