firmware/psci: Expose SMCCC version through psci_ops
authorMarc Zyngier <marc.zyngier@arm.com>
Tue, 6 Feb 2018 17:56:17 +0000 (17:56 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 6 Feb 2018 22:54:11 +0000 (22:54 +0000)
commite78eef554a912ef6c1e0bbf97619dafbeae3339f
tree2e68319038f14390223f645e4b8af4f68219031a
parent09a8d6d48499f93e2abde691f5800081cd858726
firmware/psci: Expose SMCCC version through psci_ops

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>
drivers/firmware/psci.c
include/linux/psci.h