Commit fcfbc93
committed
cxl/port: Reuse 'struct cxl_hdm' context for hdm init
The port driver maps component registers for port operations. Reuse that
mapping for HDM Decoder Capability setup / enable. Move
devm_cxl_setup_hdm() before cxl_hdm_decode_init() and plumb @cxlhdm
through the hdm init helpers.
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://lore.kernel.org/r/165291691712.1426646.14336397551571515480.stgit@dwillia2-xfh
Signed-off-by: Dan Williams <dan.j.williams@intel.com>1 parent 5e5f4ad commit fcfbc93
4 files changed
Lines changed: 28 additions & 43 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
| 179 | + | |
179 | 180 | | |
180 | 181 | | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
| 182 | + | |
| 183 | + | |
185 | 184 | | |
186 | 185 | | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
| 186 | + | |
202 | 187 | | |
203 | 188 | | |
204 | 189 | | |
| |||
210 | 195 | | |
211 | 196 | | |
212 | 197 | | |
213 | | - | |
214 | | - | |
215 | | - | |
| 198 | + | |
216 | 199 | | |
217 | 200 | | |
218 | 201 | | |
| |||
222 | 205 | | |
223 | 206 | | |
224 | 207 | | |
225 | | - | |
226 | | - | |
| 208 | + | |
227 | 209 | | |
228 | 210 | | |
229 | | - | |
230 | | - | |
231 | | - | |
| 211 | + | |
232 | 212 | | |
233 | 213 | | |
234 | 214 | | |
235 | 215 | | |
236 | 216 | | |
| 217 | + | |
237 | 218 | | |
238 | 219 | | |
239 | 220 | | |
240 | | - | |
| 221 | + | |
241 | 222 | | |
242 | 223 | | |
243 | 224 | | |
| |||
331 | 312 | | |
332 | 313 | | |
333 | 314 | | |
334 | | - | |
| 315 | + | |
335 | 316 | | |
336 | 317 | | |
337 | 318 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
77 | 77 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
39 | 52 | | |
40 | 53 | | |
41 | 54 | | |
| |||
45 | 58 | | |
46 | 59 | | |
47 | 60 | | |
48 | | - | |
| 61 | + | |
49 | 62 | | |
50 | 63 | | |
51 | 64 | | |
| |||
54 | 67 | | |
55 | 68 | | |
56 | 69 | | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | 70 | | |
64 | 71 | | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | 72 | | |
70 | 73 | | |
71 | 74 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
211 | | - | |
| 211 | + | |
| 212 | + | |
212 | 213 | | |
213 | 214 | | |
214 | 215 | | |
215 | 216 | | |
216 | 217 | | |
217 | | - | |
| 218 | + | |
218 | 219 | | |
219 | 220 | | |
220 | 221 | | |
| |||
0 commit comments