firmware/psci: Expose PSCI conduit
authorMarc Zyngier <marc.zyngier@arm.com>
Tue, 6 Feb 2018 17:56:16 +0000 (17:56 +0000)
committerHaibo Chen <haibo.chen@nxp.com>
Thu, 12 Apr 2018 10:46:33 +0000 (18:46 +0800)
commit60a18c48fc0263537844f5c38ed602c445c1ebca
treea30c59070cc73312eb86252860ebd8d9f8b469cc
parent2d056524c686917b7dc51e87819d9930e9f947eb
firmware/psci: Expose PSCI conduit

commit 09a8d6d48499 upstream.

In order to call into the firmware to apply workarounds, it is
useful to find out whether we're using HVC or SMC. Let's expose
this through the psci_ops.

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