Commit 9c1fbc5
irqchip/gic-its: Rework platform MSI deviceID detection
Current code retrieving platform devices MSI devID in the GIC ITS MSI
parent helpers suffers from some minor issues:
- It leaks a struct device_node reference
- It is duplicated between GICv3 and GICv5 for no good reason
- It does not use the OF phandle iterator code that simplifies
the msi-parent property parsing
Consolidate GIC v3 and v5 deviceID retrieval in a function that addresses
the full set of issues in one go by merging GIC v3 and v5 code and
converting the msi-parent parsing loop to the more modern OF phandle
iterator API, fixing the struct device_node reference leak in the process.
Signed-off-by: Lorenzo Pieralisi <lpieralisi@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Reviewed-by: Marc Zyngier <maz@kernel.org>
Link: https://patch.msgid.link/20251021124103.198419-6-lpieralisi@kernel.org1 parent 4f32612 commit 9c1fbc5
1 file changed
Lines changed: 23 additions & 68 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | | - | |
146 | | - | |
| 145 | + | |
| 146 | + | |
147 | 147 | | |
148 | | - | |
| 148 | + | |
| 149 | + | |
149 | 150 | | |
150 | 151 | | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
168 | 156 | | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
| 157 | + | |
| 158 | + | |
173 | 159 | | |
174 | | - | |
175 | | - | |
| 160 | + | |
| 161 | + | |
176 | 162 | | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
| 163 | + | |
| 164 | + | |
210 | 165 | | |
211 | | - | |
212 | | - | |
| 166 | + | |
| 167 | + | |
213 | 168 | | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
| 169 | + | |
| 170 | + | |
218 | 171 | | |
219 | 172 | | |
220 | 173 | | |
221 | | - | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
222 | 177 | | |
223 | 178 | | |
224 | 179 | | |
| |||
234 | 189 | | |
235 | 190 | | |
236 | 191 | | |
237 | | - | |
| 192 | + | |
238 | 193 | | |
239 | 194 | | |
240 | 195 | | |
| |||
262 | 217 | | |
263 | 218 | | |
264 | 219 | | |
265 | | - | |
| 220 | + | |
266 | 221 | | |
267 | 222 | | |
268 | 223 | | |
| |||
0 commit comments