firmware: arm_ffa: Handle compatibility with different firmware versions
authorSudeep Holla <sudeep.holla@arm.com>
Wed, 13 Oct 2021 09:11:27 +0000 (10:11 +0100)
committerSudeep Holla <sudeep.holla@arm.com>
Mon, 18 Oct 2021 12:10:38 +0000 (13:10 +0100)
commit8e3f9da608f14cfebac2659d8dd8737b79d01308
tree837603747cda1a5cb56752667b95f5cee235a70b
parenteb7b52e6db7c21400b9b2d539f9343fb6e94bd94
firmware: arm_ffa: Handle compatibility with different firmware versions

The driver currently just support v1.0 of Arm FFA specification. It also
expects the firmware implementation to match the same and bail out if it
doesn't match. This is causing issue when running with higher version of
firmware implementation(e.g. v1.1 which will released soon).

In order to support compatibility with different firmware versions, let
us add additional checks and find the compatible version the driver can
work with.

Link: https://lore.kernel.org/r/20211013091127.990992-1-sudeep.holla@arm.com
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/firmware/arm_ffa/driver.c