Commit e3aad74
iommu/arm-smmu-v3: Encapsulate ctx_desc_cfg init in alloc_cd_tables
This is slighlty cleaner: arm_smmu_ctx_desc_cfg is initialized in a
single function instead of having pieces set ahead-of time by its caller.
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Nicolin Chen <nicolinc@nvidia.com>
Signed-off-by: Michael Shavit <mshavit@google.com>
Tested-by: Nicolin Chen <nicolinc@nvidia.com>
Link: https://lore.kernel.org/r/20230915211705.v8.3.I875254464d044a8ce8b3a2ad6beb655a4a006456@changeid
Signed-off-by: Will Deacon <will@kernel.org>1 parent 1f85888 commit e3aad74
1 file changed
Lines changed: 4 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1132 | 1132 | | |
1133 | 1133 | | |
1134 | 1134 | | |
1135 | | - | |
| 1135 | + | |
| 1136 | + | |
1136 | 1137 | | |
1137 | 1138 | | |
1138 | 1139 | | |
1139 | 1140 | | |
1140 | 1141 | | |
1141 | 1142 | | |
1142 | 1143 | | |
| 1144 | + | |
1143 | 1145 | | |
1144 | 1146 | | |
1145 | 1147 | | |
| |||
2092 | 2094 | | |
2093 | 2095 | | |
2094 | 2096 | | |
2095 | | - | |
2096 | 2097 | | |
2097 | 2098 | | |
2098 | 2099 | | |
| |||
2105 | 2106 | | |
2106 | 2107 | | |
2107 | 2108 | | |
2108 | | - | |
2109 | | - | |
2110 | 2109 | | |
2111 | 2110 | | |
2112 | | - | |
| 2111 | + | |
2113 | 2112 | | |
2114 | 2113 | | |
2115 | 2114 | | |
| |||
0 commit comments