Skip to content

Commit 978fa43

Browse files
sudeep-hollaarndb
authored andcommitted
drivers: firmware: psci: unify enable-method binding on ARM {64,32}-bit systems
Currently ARM CPUs DT bindings allows different enable-method value for PSCI based systems. On ARM 64-bit this property is required and must be "psci" while on ARM 32-bit systems this property is optional and must be "arm,psci" if present. However, "arm,psci" has always been the compatible string for the PSCI node, and was never intended to be the enable-method. So this is a bug in the binding and not a deliberate attempt at specifying 32-bit differently. This is problematic if 32-bit OS is run on 64-bit system which has "psci" as enable-method rather than the expected "arm,psci". So let's unify the value into "psci" and remove support for "arm,psci" before it finds any users. Reported-by: Soby Mathew <Soby.Mathew@arm.com> Cc: Rob Herring <robh+dt@kernel.org> Acked-by: Mark Rutland <mark.rutland@arm.com> Acked-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Signed-off-by: Sudeep Holla <sudeep.holla@arm.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
1 parent 004cb62 commit 978fa43

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

‎Documentation/devicetree/bindings/arm/cpus.txt‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,6 @@ nodes to be present and contain the properties described below.
192192
can be one of:
193193
"allwinner,sun6i-a31"
194194
"allwinner,sun8i-a23"
195-
"arm,psci"
196195
"arm,realview-smp"
197196
"brcm,bcm-nsp-smp"
198197
"brcm,brahma-b15"

‎drivers/firmware/psci.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ static struct cpuidle_ops psci_cpuidle_ops __initdata = {
360360
.init = psci_dt_cpu_init_idle,
361361
};
362362

363-
CPUIDLE_METHOD_OF_DECLARE(psci, "arm,psci", &psci_cpuidle_ops);
363+
CPUIDLE_METHOD_OF_DECLARE(psci, "psci", &psci_cpuidle_ops);
364364
#endif
365365
#endif
366366

0 commit comments

Comments
 (0)