]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
firmware: arm_ffa: Tie FF-A version checks to specific features
authorSudeep Holla <sudeep.holla@arm.com>
Thu, 16 Oct 2025 09:41:11 +0000 (10:41 +0100)
committerSudeep Holla <sudeep.holla@arm.com>
Mon, 15 Dec 2025 10:31:15 +0000 (10:31 +0000)
commitf183b1dda4fc0348c4016f6289588d5853ab7936
tree39c90ab7e4c622aedb96ddd36de4836c730f6fe6
parent9fda364cb78c8b9e1abe4029f877300c94655742
firmware: arm_ffa: Tie FF-A version checks to specific features

The FF-A driver currently performs loose comparisons when checking the
supported FF-A feature, which can inadvertently treat future or
intermediate revisions as compatible.

Replace generic `version {>,<} FFA_VERSION_1_*` pattern checks with
feature-specific macros that clearly express which functionality
depends on FF-A versioning.

This improves readability and future maintainability by tying each
feature (e.g. GET_COUNT_ONLY, size/UUID/exec state in responses) to
explicit version requirements instead of relying on generic version
comparisons. This improves robustness and clarity as the FF-A
specification evolves.

No functional change, only improves code readability.

Message-Id: <20251016094111.946236-1-sudeep.holla@arm.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/firmware/arm_ffa/driver.c