mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 12:17:12 +09:00
ARM: psci: convert psci '-EALREADYON' error code to linux '-EAGAIN'
This patch adds a possible error code of the cpu_on psci api. It indicates that the cpu specified in the cpu_on call is up and running (e.g. the firmware still has not seen the preceding cpu_off call). Signed-off-by: Achin Gupta <achin.gupta@arm.com> Signed-off-by: Liviu Dudau <Liviu.Dudau@arm.com>
This commit is contained in:
committed by
Jon Medhurst
parent
88d295ae94
commit
4e57b6c98d
@@ -42,6 +42,7 @@ static u32 psci_function_id[PSCI_FN_MAX];
|
||||
#define PSCI_RET_EOPNOTSUPP -1
|
||||
#define PSCI_RET_EINVAL -2
|
||||
#define PSCI_RET_EPERM -3
|
||||
#define PSCI_RET_EALREADYON -4
|
||||
|
||||
static int psci_to_linux_errno(int errno)
|
||||
{
|
||||
@@ -54,6 +55,8 @@ static int psci_to_linux_errno(int errno)
|
||||
return -EINVAL;
|
||||
case PSCI_RET_EPERM:
|
||||
return -EPERM;
|
||||
case PSCI_RET_EALREADYON:
|
||||
return -EAGAIN;
|
||||
};
|
||||
|
||||
return -EINVAL;
|
||||
|
||||
Reference in New Issue
Block a user