]> git.ipfire.org Git - thirdparty/linux.git/commit
firmware: arm_ffa: Stash ffa_device instead of notify_type in notifier_cb_info
authorSudeep Holla <sudeep.holla@arm.com>
Mon, 17 Feb 2025 15:38:56 +0000 (15:38 +0000)
committerSudeep Holla <sudeep.holla@arm.com>
Mon, 17 Feb 2025 15:42:04 +0000 (15:42 +0000)
commita3d73fe8ae5db389f2108a052c0a9c3c3fbc29cf
tree13f59c41d4ea4168c4d1f823eb8128b1adf5f6ad
parent07b760e713255a2224cfaad62eeaae85de913bac
firmware: arm_ffa: Stash ffa_device instead of notify_type in notifier_cb_info

Currently, we store the type of the notification in the notifier_cb_info
structure that is put into the hast list to identify if the notification
block is for the secure partition or the non secure VM.

In order to support framework notifications to reuse the hash list and
to avoid creating one for each time, we need store the ffa_device pointer
itself as the same notification ID in framework notifications can be
registered by multiple FF-A devices.

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