]> git.baikalelectronics.ru Git - kernel.git/commit
psci: Support psci_ops.get_version for v0.1
authorDavid Brazdil <dbrazdil@google.com>
Wed, 2 Dec 2020 18:40:59 +0000 (18:40 +0000)
committerMarc Zyngier <maz@kernel.org>
Fri, 4 Dec 2020 08:44:23 +0000 (08:44 +0000)
commit8406c341855e435aec545ae1ac7ca92d034d9254
tree22b6c187728105642b410538173385e93fcf8d53
parent02733c35889247c728804d669d7667832e7ffb53
psci: Support psci_ops.get_version for v0.1

KVM's host PSCI SMC filter needs to be aware of the PSCI version of the
system but currently it is impossible to distinguish between v0.1 and
PSCI disabled because both have get_version == NULL.

Populate get_version for v0.1 with a function that returns a constant.

psci_opt.get_version is currently unused so this has no effect on
existing functionality.

Signed-off-by: David Brazdil <dbrazdil@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Link: https://lore.kernel.org/r/20201202184122.26046-4-dbrazdil@google.com
drivers/firmware/psci/psci.c