diff options
author | Sudeep Holla <sudeep.holla@arm.com> | 2023-10-05 16:45:06 +0200 |
---|---|---|
committer | Sudeep Holla <sudeep.holla@arm.com> | 2023-10-06 16:33:14 +0200 |
commit | c9b21ef0d0a87695d7bfeee9a04b89760b49ccf5 (patch) | |
tree | 3208e9ad4b824e708de6d85c541a16f073b0ceed /include | |
parent | firmware: arm_ffa: Add notification handling mechanism (diff) | |
download | linux-c9b21ef0d0a87695d7bfeee9a04b89760b49ccf5.tar.xz linux-c9b21ef0d0a87695d7bfeee9a04b89760b49ccf5.zip |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/arm_ffa.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/linux/arm_ffa.h b/include/linux/arm_ffa.h index f6df81f14b6d..748d0a83a4bc 100644 --- a/include/linux/arm_ffa.h +++ b/include/linux/arm_ffa.h @@ -356,8 +356,6 @@ struct ffa_mem_region { (offsetof(struct ffa_mem_region, ep_mem_access[x])) #define CONSTITUENTS_OFFSET(x) \ (offsetof(struct ffa_composite_mem_region, constituents[x])) -#define COMPOSITE_CONSTITUENTS_OFFSET(x, y) \ - (COMPOSITE_OFFSET(x) + CONSTITUENTS_OFFSET(y)) struct ffa_mem_ops_args { bool use_txbuf; |