diff options
author | Jason Gunthorpe <jgg@nvidia.com> | 2024-09-06 12:47:55 -0300 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2024-09-09 15:47:15 +0100 |
commit | e3b1be2e73dbe599f8b8886e120d206aa87e90f9 (patch) | |
tree | 4586b8602c124630b7d63fff8ff706c88b15fc31 /fs | |
parent | 7c567eb1e1d2a835140091ff8d4b73ac5454ba7b (diff) |
iommu/arm-smmu-v3: Reorganize struct arm_smmu_ctx_desc_cfg
The members here are being used for both the linear and the 2 level case,
with the meaning of each item slightly different in the two cases.
Split it into a clean union where both cases have their own struct with
their own logical names and correct types.
Adjust all the users to detect linear/2lvl and use the right sub structure
and types consistently.
Remove CTXDESC_CD_DWORDS by changing the last places to use
sizeof(struct arm_smmu_cd).
Tested-by: Nicolin Chen <nicolinc@nvidia.com>
Reviewed-by: Nicolin Chen <nicolinc@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/8-v4-6416877274e1+1af-smmuv3_tidy_jgg@nvidia.com
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions