]> 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)
commite6dd9d89a64e30b25339d0dbe5c5aa589db8d530
tree22b6c187728105642b410538173385e93fcf8d53
parent3eb681fba2bf8b67b65ce92d0ebfd7cbfc263da9
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