From: Dave Jiang <dave.jiang@intel.com>
To: Alison Schofield <alison.schofield@intel.com>,
Davidlohr Bueso <dave@stgolabs.net>,
Jonathan Cameron <jic23@kernel.org>,
Vishal Verma <vishal.l.verma@intel.com>,
Ira Weiny <iweiny@kernel.org>, Li Ming <ming.li@zohomail.com>,
Richard Cheng <icheng@nvidia.com>,
Robert Richter <rrichter@amd.com>
Cc: linux-cxl@vger.kernel.org
Subject: Re: [PATCH v2 3/8] cxl/region: Rename cxl_port_setup_targets() to cxl_switch_port_setup_targets()
Date: Tue, 13 Oct 2026 09:45:58 -0700 [thread overview]
Message-ID: <9a583963-6274-4539-a546-e05e3965d3cf@intel.com> (raw)
In-Reply-To: <6bef106f136e813b760fa7ab65d419fa4a1b6922.1791676454.git.alison.schofield@intel.com>
On 10/10/26 5:20 PM, Alison Schofield wrote:
> cxl_port_setup_targets() configures the switch decoder targets for a
> region. It runs for each switch port, including host bridges, between the
> root and an endpoint.
>
> Rename the function to cxl_switch_port_setup_targets() to make its scope
> explicit.
>
> No functional change.
>
> Suggested-by: Dave Jiang <dave.jiang@intel.com>
> Assisted-by: LLM
> Signed-off-by: Alison Schofield <alison.schofield@intel.com>
> ---
> drivers/cxl/core/region.c | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/cxl/core/region.c b/drivers/cxl/core/region.c
> index 1a42753fda48..d564443a1d39 100644
> --- a/drivers/cxl/core/region.c
> +++ b/drivers/cxl/core/region.c
> @@ -1432,9 +1432,9 @@ static int check_interleave_cap(struct cxl_decoder *cxld, int iw, int ig)
> return 0;
> }
>
> -static int cxl_port_setup_targets(struct cxl_port *port,
> - struct cxl_region *cxlr,
> - struct cxl_endpoint_decoder *cxled)
> +static int cxl_switch_port_setup_targets(struct cxl_port *port,
Pass in cxlsd since it's a switch port function? That would enforce the type.
DJ
> + struct cxl_region *cxlr,
> + struct cxl_endpoint_decoder *cxled)
> {
> struct cxl_root_decoder *cxlrd = cxlr->cxlrd;
> int parent_iw, parent_ig, child_iw, child_ig, rc, pos = cxled->pos;
> @@ -1716,7 +1716,7 @@ static int cxl_region_setup_targets(struct cxl_region *cxlr)
> */
> for (ep = cxl_ep_load(iter, cxlmd); iter;
> iter = ep->next, ep = cxl_ep_load(iter, cxlmd)) {
> - rc = cxl_port_setup_targets(iter, cxlr, cxled);
> + rc = cxl_switch_port_setup_targets(iter, cxlr, cxled);
> if (rc) {
> cxl_region_teardown_targets(cxlr);
> return rc;
next prev parent reply other threads:[~2026-10-13 16:46 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-11 0:20 [PATCH v2 0/8] cxl/region: Refactor cxl_port_setup_targets() Alison Schofield
2026-10-11 0:20 ` [PATCH v2 1/8] cxl: Add interleave encoding validity helpers Alison Schofield
2026-10-12 15:07 ` Jonathan Cameron
2026-10-11 0:20 ` [PATCH v2 2/8] cxl/region: Name the interleave locals in cxl_port_setup_targets() Alison Schofield
2026-10-12 3:01 ` Alison Schofield
2026-10-11 0:20 ` [PATCH v2 3/8] cxl/region: Rename cxl_port_setup_targets() to cxl_switch_port_setup_targets() Alison Schofield
2026-10-12 15:12 ` Jonathan Cameron
2026-10-13 16:45 ` Dave Jiang [this message]
2026-10-11 0:20 ` [PATCH v2 4/8] cxl/region: Factor out cxl_port_peer_distance() Alison Schofield
2026-10-12 15:16 ` Jonathan Cameron
2026-10-13 4:23 ` Alison Schofield
2026-10-11 0:20 ` [PATCH v2 5/8] cxl/region: Factor out cxl_port_parent_interleave() Alison Schofield
2026-10-11 0:20 ` [PATCH v2 6/8] cxl/region: Factor out cxl_port_calc_interleave() Alison Schofield
2026-10-11 0:20 ` [PATCH v2 7/8] cxl/region: Factor out cxl_port_setup_decoder() Alison Schofield
2026-10-11 0:20 ` [PATCH v2 8/8] cxl/region: Factor out cxl_switch_port_add_target() Alison Schofield
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9a583963-6274-4539-a546-e05e3965d3cf@intel.com \
--to=dave.jiang@intel.com \
--cc=alison.schofield@intel.com \
--cc=dave@stgolabs.net \
--cc=icheng@nvidia.com \
--cc=iweiny@kernel.org \
--cc=jic23@kernel.org \
--cc=linux-cxl@vger.kernel.org \
--cc=ming.li@zohomail.com \
--cc=rrichter@amd.com \
--cc=vishal.l.verma@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.