]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
firmware: arm_ffa: Fix big-endian support in __ffa_partition_info_regs_get()
authorSudeep Holla <sudeep.holla@arm.com>
Mon, 17 Feb 2025 15:38:46 +0000 (15:38 +0000)
committerSudeep Holla <sudeep.holla@arm.com>
Mon, 17 Feb 2025 15:42:03 +0000 (15:42 +0000)
commit7bc0f589c81d62bc95f9ed142847219fc5d8ef6c
treeb056c11c0e29947137cd720477aa671b04a14dd3
parentf94ebb72406779637dbdb2c192a5e99f43375036
firmware: arm_ffa: Fix big-endian support in __ffa_partition_info_regs_get()

Currently the FF-A driver doesn't support big-endian correctly. It is
hard to regularly test the setup due to lack of test infrastructure and
tools.

In order to support full stack, we need to take small steps in getting
the support for big-endian kernel added slowly. This change fixes the
support in __ffa_partition_info_regs_get() so that the response from the
firmware are converted correctly as required. With this change, we can
enumerate all the FF-A devices correctly in the big-endian kernel if the
FFA_PARTITION_INFO_REGS_GET is supported.

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