Commit d6879d8
cxl/region: Add function to find a port's switch decoder by range
Factor out code to find the switch decoder of a port for a specific
address range. Reuse the code to search a root decoder, create the
function cxl_port_find_switch_decoder() and rework
match_root_decoder_by_range() to be usable for switch decoders too.
Signed-off-by: Robert Richter <[email protected]>
Reviewed-by: Gregory Price <[email protected]>
Reviewed-by: Jonathan Cameron <[email protected]>
Reviewed-by: Dave Jiang <[email protected]>
Reviewed-by: "Fabio M. De Francesco" <[email protected]>
Tested-by: Gregory Price <[email protected]>
Acked-by: Dan Williams <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Dave Jiang <[email protected]>1 parent 868a8f1 commit d6879d8
1 file changed
+18
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3202 | 3202 | | |
3203 | 3203 | | |
3204 | 3204 | | |
3205 | | - | |
3206 | | - | |
| 3205 | + | |
3207 | 3206 | | |
3208 | 3207 | | |
3209 | | - | |
| 3208 | + | |
3210 | 3209 | | |
3211 | | - | |
| 3210 | + | |
3212 | 3211 | | |
3213 | 3212 | | |
3214 | | - | |
3215 | | - | |
| 3213 | + | |
| 3214 | + | |
3216 | 3215 | | |
3217 | 3216 | | |
3218 | 3217 | | |
| 3218 | + | |
| 3219 | + | |
| 3220 | + | |
| 3221 | + | |
| 3222 | + | |
| 3223 | + | |
| 3224 | + | |
| 3225 | + | |
| 3226 | + | |
3219 | 3227 | | |
3220 | 3228 | | |
3221 | 3229 | | |
3222 | 3230 | | |
3223 | 3231 | | |
3224 | 3232 | | |
3225 | | - | |
| 3233 | + | |
3226 | 3234 | | |
3227 | | - | |
3228 | 3235 | | |
3229 | | - | |
3230 | | - | |
3231 | | - | |
| 3236 | + | |
| 3237 | + | |
3232 | 3238 | | |
3233 | 3239 | | |
3234 | 3240 | | |
3235 | 3241 | | |
3236 | 3242 | | |
3237 | 3243 | | |
3238 | 3244 | | |
3239 | | - | |
| 3245 | + | |
3240 | 3246 | | |
3241 | 3247 | | |
3242 | 3248 | | |
| |||
0 commit comments