]> git.itanic.dy.fi Git - linux-stable/commit
firmware: arm_ffa: Simplify the computation of transmit and fragment length
authorSudeep Holla <sudeep.holla@arm.com>
Thu, 5 Oct 2023 14:45:06 +0000 (15:45 +0100)
committerSudeep Holla <sudeep.holla@arm.com>
Fri, 6 Oct 2023 14:33:14 +0000 (15:33 +0100)
commitc9b21ef0d0a87695d7bfeee9a04b89760b49ccf5
tree3208e9ad4b824e708de6d85c541a16f073b0ceed
parent1b6bf41b7a65cf2ce4485f740a2764529635153c
firmware: arm_ffa: Simplify the computation of transmit and fragment length

The computation of endpoint memory access descriptor's composite memory
region descriptor offset is using COMPOSITE_CONSTITUENTS_OFFSET which is
unnecessary complicated. Composite memory region descriptor always follow
the endpoint memory access descriptor array and hence it is computed
accordingly. COMPOSITE_CONSTITUENTS_OFFSET is useless and wrong for any
input other than endpoint memory access descriptor count.

Let us drop the usage of COMPOSITE_CONSTITUENTS_OFFSET to simplify the
computation of total transmit and fragment length in the memory
transactions.

Link: https://lore.kernel.org/r/20231005-ffa_v1-1_notif-v4-13-cddd3237809c@arm.com
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/firmware/arm_ffa/driver.c
include/linux/arm_ffa.h