drivers: firmware: psci: move power_state handling to generic code
authorLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Tue, 26 May 2015 15:49:01 +0000 (16:49 +0100)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Fri, 2 Oct 2015 13:35:16 +0000 (14:35 +0100)
commit068654c200cc32966ce7906ca0bd096b9b97e988
treed0b7c97952230aa8897b066f37fcf41a9d57be54
parent2217d7c68e5caf50ec86b8c75c76bf06eb4b2c45
drivers: firmware: psci: move power_state handling to generic code

Functions implemented on arm64 to check if a power_state parameter
is valid and if the power_state implies context loss are not
arm64 specific and should be moved to generic code so that they
can be reused on arm systems too.

This patch moves the functions handling the power_state parameter
to generic PSCI firmware layer code.

Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Acked-by: Will Deacon <will.deacon@arm.com>
Acked-by: Sudeep Holla <sudeep.holla@arm.com>
Tested-by: Jisheng Zhang <jszhang@marvell.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Mark Rutland <mark.rutland@arm.com>
arch/arm64/kernel/psci.c
drivers/firmware/psci.c
include/linux/psci.h