drivers: firmware: psci: add INVALID_ADDRESS return value
authorLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Fri, 22 May 2015 13:31:37 +0000 (14:31 +0100)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Fri, 2 Oct 2015 13:35:16 +0000 (14:35 +0100)
commit2217d7c68e5caf50ec86b8c75c76bf06eb4b2c45
tree1d703d51aa48d6e1057ff52d84c2500ef7639987
parent9ffecb10283508260936b96022d4ee43a7798b4c
drivers: firmware: psci: add INVALID_ADDRESS return value

PSCI 1.0 introduces the INVALID_ADDRESS return value for functions
that take an address as input parameter (eg CPU_SUSPEND).

This patch adds INVALID_ADDRESS return value to kernel code and
updates the PSCI to linux error conversion to take it into account.

The kernel error value associated to INVALID_ADDRESS is set to
the error returned when the PSCI error code is INVALID_PARAMETERS
to comply with current call sites expected return value, given
that the kernel at present has no use for the additional error
information reported.

Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Acked-by: Sudeep Holla <sudeep.holla@arm.com>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Tested-by: Jisheng Zhang <jszhang@marvell.com>
drivers/firmware/psci.c
include/uapi/linux/psci.h