diff options
author | Cédric Le Goater <clg@fr.ibm.com> | 2015-04-08 09:31:10 +0200 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2015-06-04 14:27:56 +0200 |
commit | 14aae78f084af5241476ede8e28b377fc751b191 (patch) | |
tree | bdea26e961e2bddd5f00aa31a94b606f676fb189 /arch/powerpc/platforms/powernv/opal.c | |
parent | cxl: Add AFU virtual PHB and kernel API (diff) | |
download | linux-14aae78f084af5241476ede8e28b377fc751b191.tar.xz linux-14aae78f084af5241476ede8e28b377fc751b191.zip |
powerpc/powernv: convert OPAL codes returned by sysparam calls
The opal_{get,set}_param calls return internal error codes which need
to be translated in errnos in Linux.
Signed-off-by: Cédric Le Goater <clg@fr.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/platforms/powernv/opal.c')
-rw-r--r-- | arch/powerpc/platforms/powernv/opal.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/powernv/opal.c b/arch/powerpc/platforms/powernv/opal.c index 8403307c5362..fd694bd51b80 100644 --- a/arch/powerpc/platforms/powernv/opal.c +++ b/arch/powerpc/platforms/powernv/opal.c @@ -830,6 +830,7 @@ int opal_error_code(int rc) case OPAL_ASYNC_COMPLETION: return -EINPROGRESS; case OPAL_BUSY_EVENT: return -EBUSY; case OPAL_NO_MEM: return -ENOMEM; + case OPAL_PERMISSION: return -EPERM; case OPAL_UNSUPPORTED: return -EIO; case OPAL_HARDWARE: return -EIO; |