]> git.itanic.dy.fi Git - linux-stable/commit
firmware: arm_ffa: Set up 32bit execution mode flag using partiion property
authorSudeep Holla <sudeep.holla@arm.com>
Wed, 7 Sep 2022 14:52:39 +0000 (15:52 +0100)
committerSudeep Holla <sudeep.holla@arm.com>
Thu, 8 Sep 2022 10:33:15 +0000 (11:33 +0100)
commit106b11b1ccd5a43432d9517f4a26629a1658cfe6
tree7f9cd59e0db2caed5375ec05fedb046d5cef192f
parentbb1be749850055d88d839eff0962e5915788f228
firmware: arm_ffa: Set up 32bit execution mode flag using partiion property

FF-A v1.1 adds a flag in the partition properties to indicate if the
partition runs in the AArch32 or AArch64 execution state. Use the same
to set-up the 32-bit execution flag mode in the ffa_dev automatically
if the detected firmware version is above v1.0 and ignore any requests
to do the same from the ffa_driver.

Link: https://lore.kernel.org/r/20220907145240.1683088-10-sudeep.holla@arm.com
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/firmware/arm_ffa/driver.c
include/linux/arm_ffa.h