diff options
| author | Alison Schofield <alison.schofield@intel.com> | 2026-11-02 12:16:04 -0800 |
|---|---|---|
| committer | Dave Jiang <dave.jiang@intel.com> | 2026-11-02 13:43:25 -0700 |
| commit | 0e3e8b653ca3ab145aced729861cf0d1a06da69e (patch) | |
| tree | 37670bc18c4964439568d44f5fe8dcbbb4560d64 /scripts/Makefile.thinlto | |
| parent | 127ea4404a129cd496c8c872b8644c3c06e13860 (diff) | |
| download | linux-next-0e3e8b653ca3ab145aced729861cf0d1a06da69e.tar.gz linux-next-0e3e8b653ca3ab145aced729861cf0d1a06da69e.zip | |
cxl/region: Factor out cxl_switch_port_add_target()
cxl_switch_port_setup_targets() adds an endpoint's downstream port to a
port's decoder target list. For an auto region it checks that the decoder
already targets that downstream port at the next position. For a user
created region it programs the downstream port at that position. That step
is open coded.
Move that step to a new helper, cxl_switch_port_add_target(). The helper
takes the switch decoder whose target list it updates, which makes the
scope explicit.
No functional change.
Signed-off-by: Alison Schofield <alison.schofield@intel.com>
Reviewed-by: Richard Cheng <icheng@nvidia.com>
Reviewed-by: Li Ming <ming.li@zohomail.com>
Reviewed-by: Jonathan Cameron <jonathan.cameron@oss.qualcomm.com>
Link: https://patch.msgid.link/0a46cfc2e9da5e92d0cc263f08b424a785c627aa.1793649898.git.alison.schofield@intel.com
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
