Commit ff0f802
iommu/arm-smmu: Reorganize arm_smmu_domain_add_master()
Make arm_smmu_domain_add_master() not use the smmu_domain to detect the
s2cr configuration, instead pass it in as a parameter. It always returns
zero so make it return void.
Since it no longer really does anything to do with a domain call it
arm_smmu_master_install_s2crs().
This is done to make the next two patches able to re-use this code without
forcing the creation of a struct arm_smmu_domain.
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/1-v2-c86cc8c2230e+160bb-smmu_newapi_jgg@nvidia.com
Signed-off-by: Will Deacon <will@kernel.org>1 parent 9fde008 commit ff0f802
1 file changed
Lines changed: 10 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1081 | 1081 | | |
1082 | 1082 | | |
1083 | 1083 | | |
1084 | | - | |
1085 | | - | |
1086 | | - | |
| 1084 | + | |
| 1085 | + | |
| 1086 | + | |
1087 | 1087 | | |
1088 | | - | |
| 1088 | + | |
1089 | 1089 | | |
1090 | | - | |
1091 | | - | |
1092 | 1090 | | |
1093 | 1091 | | |
1094 | | - | |
1095 | | - | |
1096 | | - | |
1097 | | - | |
1098 | | - | |
1099 | 1092 | | |
1100 | 1093 | | |
1101 | 1094 | | |
| |||
1105 | 1098 | | |
1106 | 1099 | | |
1107 | 1100 | | |
1108 | | - | |
1109 | 1101 | | |
1110 | 1102 | | |
1111 | 1103 | | |
| |||
1153 | 1145 | | |
1154 | 1146 | | |
1155 | 1147 | | |
1156 | | - | |
| 1148 | + | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
| 1152 | + | |
| 1153 | + | |
1157 | 1154 | | |
1158 | 1155 | | |
1159 | 1156 | | |
| |||
0 commit comments