diff options
| author | Alison Schofield <alison.schofield@intel.com> | 2026-11-02 12:16:03 -0800 |
|---|---|---|
| committer | Dave Jiang <dave.jiang@intel.com> | 2026-11-02 13:43:25 -0700 |
| commit | 127ea4404a129cd496c8c872b8644c3c06e13860 (patch) | |
| tree | eab6a96c785c795ca37b866dd08bd91b27321e9a /scripts/Makefile.thinlto | |
| parent | a8aaec84078be2bb18cc8c268f313e2d94f7f276 (diff) | |
| download | linux-next-127ea4404a129cd496c8c872b8644c3c06e13860.tar.gz linux-next-127ea4404a129cd496c8c872b8644c3c06e13860.zip | |
cxl/region: Simplify switch port target setup control flow
cxl_switch_port_setup_targets() searches the decoder's existing targets
for the endpoint's downstream port. On a match it checks the peer position
and jumps to an out_target_set label to log the target. Otherwise it jumps
to an add_target label, skipping the interleave calculation and decoder
setup that only the first endpoint to reach a port needs.
Return the peer check result directly when the downstream port is already
a target, and make the first endpoint's decoder setup the else branch of
the target search. Both labels go away.
Returning directly after peer validation also removes a misleading debug
message that reported a reused target as a new assignment, with a bad
index.
Suggested-by: Li Ming <ming.li@zohomail.com>
Suggested-by: Jonathan Cameron <jonathan.cameron@oss.qualcomm.com>
Signed-off-by: Alison Schofield <alison.schofield@intel.com>
Reviewed-by: Jonathan Cameron <jonathan.cameron@oss.qualcomm.com>
Reviewed-by: Li Ming <ming.li@zohomail.com>
Link: https://patch.msgid.link/901d24894022720ac56aed9c172d7a4682a26cd7.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
