]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
firmware: arm_ffa: Refactoring to prepare for framework notification support
authorSudeep Holla <sudeep.holla@arm.com>
Mon, 17 Feb 2025 15:38:55 +0000 (15:38 +0000)
committerSudeep Holla <sudeep.holla@arm.com>
Mon, 17 Feb 2025 15:42:04 +0000 (15:42 +0000)
commit07b760e713255a2224cfaad62eeaae85de913bac
treeef580053724082c0dc1c99ace2aaaba232e7bb35
parent9982cabf403fbd06a120a2d5b21830effd32b370
firmware: arm_ffa: Refactoring to prepare for framework notification support

Currently, the framework notifications are not supported at all.
handle_notif_callbacks() doesn't handle them though it is called with
framework bitmap. Make that explicit by adding checks for the same.

Also, we need to further classify the framework notifications as Secure
Partition Manager(SPM) and NonSecure Hypervisor(NS_HYP). Extend/change
notify_type enumeration to accommodate all the 4 type and rejig the
values so that it can be reused in the bitmap enable mask macros.

While at this, move ffa_notify_type_get() so that it can be used in
notifier_hash_node_get() in the future.

No functional change.

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