summaryrefslogtreecommitdiff
path: root/drivers/firmware
diff options
context:
space:
mode:
authorSudeep Holla <sudeep.holla@arm.com>2024-04-17 12:09:21 +0300
committerSudeep Holla <sudeep.holla@arm.com>2024-04-18 20:29:49 +0300
commit3c258bf6bf29d8c9f9b358c64f6e9f4510c91ff9 (patch)
treebffe737dcbab3edb36a3c60424375aa5ea68687f /drivers/firmware
parent0370fb127ce3432a4081fe1415a947308cb827f1 (diff)
downloadlinux-3c258bf6bf29d8c9f9b358c64f6e9f4510c91ff9.tar.xz
firmware: arm_ffa: Stash the partition properties for query purposes
The properies obtained from the partition information descriptor as part of initial partitions discovery is useful as it contain info if the partition - Runs in AArch64 or AArch32 execution state - Can send and/or receive direct requests - Can send and receive indirect message - Does support receipt of notifications. These can be used for querying before attempting to do any of the above operations. Link: https://lore.kernel.org/r/20240417090921.2866447-1-sudeep.holla@arm.com Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Diffstat (limited to 'drivers/firmware')
-rw-r--r--drivers/firmware/arm_ffa/driver.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/firmware/arm_ffa/driver.c b/drivers/firmware/arm_ffa/driver.c
index b64e8ee64bc2..99a23dd3d189 100644
--- a/drivers/firmware/arm_ffa/driver.c
+++ b/drivers/firmware/arm_ffa/driver.c
@@ -1228,6 +1228,8 @@ static int ffa_setup_partitions(void)
continue;
}
+ ffa_dev->properties = tpbuf->properties;
+
if (drv_info->version > FFA_VERSION_1_0 &&
!(tpbuf->properties & FFA_PARTITION_AARCH64_EXEC))
ffa_mode_32bit_set(ffa_dev);