]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
firmware: arm_ffa: Allow multiple UUIDs per partition to register SRI callback
authorSudeep Holla <sudeep.holla@arm.com>
Mon, 17 Feb 2025 15:38:59 +0000 (15:38 +0000)
committerSudeep Holla <sudeep.holla@arm.com>
Mon, 17 Feb 2025 15:42:05 +0000 (15:42 +0000)
commitbe61da938576671c664382a059f961d7b4b2fc41
treebcdedd2d5f2a02788cdab86a03fcea005bd69a55
parent285a5ea0f542db94c3ed11e01a71abb47d15cbf5
firmware: arm_ffa: Allow multiple UUIDs per partition to register SRI callback

A partition can implement multiple UUIDs and currently we successfully
register each UUID service as a FF-A device. However when adding the
same partition info to the XArray which tracks the SRI callbacks more
than once, it fails.

In order to allow multiple UUIDs per partition to register SRI callbacks
the partition information stored in the XArray needs to be extended to
a listed list.

A function to remove the list of partition information in the XArray
is not added as there are no users at the time. All the partitions are
added at probe/initialisation and removed at cleanup stage.

Tested-by: Viresh Kumar <viresh.kumar@linaro.org>
Message-Id: <20250217-ffa_updates-v3-18-bd1d9de615e7@arm.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/firmware/arm_ffa/driver.c