]> git.baikalelectronics.ru Git - kernel.git/commit
drivers: firmware: psci: unify enable-method binding on ARM {64,32}-bit systems
authorSudeep Holla <sudeep.holla@arm.com>
Fri, 22 Apr 2016 15:18:02 +0000 (16:18 +0100)
committerArnd Bergmann <arnd@arndb.de>
Tue, 26 Apr 2016 10:46:08 +0000 (12:46 +0200)
commite1f7252263948a5140969a7aa71dcd799969406b
tree7bc40f3e6e9e327ff0a28203fea64bfd5a84f2eb
parent7af9a8cdbf80897a7cfdda88822e7f519d2c0ed7
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>
Documentation/devicetree/bindings/arm/cpus.txt
drivers/firmware/psci.c