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)
committerHaibo Chen <haibo.chen@nxp.com>
Thu, 12 Apr 2018 10:46:33 +0000 (18:46 +0800)
commit75eacd41fcac47fade0e2d2575cf4488fecf7a80
tree7145c7a6ea0a074a7fcff0d2ca9f8cdd80d8ba95
parent60a18c48fc0263537844f5c38ed602c445c1ebca
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: Alex Shi <alex.shi@linaro.org>
drivers/firmware/psci.c
include/linux/psci.h