firmware/psci: Expose SMCCC version through psci_ops
commiteadba98b0dd90bb9e5a814115907cc00b4a8c590
authorMarc Zyngier <marc.zyngier@arm.com>
Tue, 6 Feb 2018 17:56:17 +0000 (6 17:56 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Feb 2018 19:06:43 +0000 (16 20:06 +0100)
tree1154aa8e83692593643564fdf61c69ac9580b6a8
parent5195a21d5ba08161710364147141a8376e18d154
firmware/psci: Expose SMCCC version through psci_ops

Commit e78eef554a91 upstream.

Since PSCI 1.0 allows the SMCCC version to be (indirectly) probed,
let's do that at boot time, and expose the version of the calling
convention as part of the psci_ops structure.

Acked-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/firmware/psci.c
include/linux/psci.h