drivers: firmware: psci: add extended stateid power_state support
authorLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Tue, 26 May 2015 16:10:32 +0000 (17:10 +0100)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Fri, 2 Oct 2015 13:35:17 +0000 (14:35 +0100)
commita5c00bb28da0bb34f901d090839fc448246aa996
tree2588a66ac9d6d872e3e3dabd2c0ecc629a537dea
parent5f004e0c9fb152a080b47d06dc48bdd29765a734
drivers: firmware: psci: add extended stateid power_state support

PSCI v1.0 augmented the power_state parameter format specification
(extended stateid) and introduced a way to probe it through the
PSCI_FEATURES interface.

This patch implements code that detects the power_state format at
run-time through the PSCI_FEATURES interface, so that the power_state
argument can be properly detected and validated in the kernel according
to the information provided through firmware.

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