Linux CXL
 help / color / mirror / Atom feed
From: Alison Schofield <alison.schofield@intel.com>
To: Dave Jiang <dave.jiang@intel.com>
Cc: 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>, <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: Fri, 16 Oct 2026 17:08:38 -0700	[thread overview]
Message-ID: <atK8hp1DT_glZHT7@aschofie-mobl2.lan> (raw)
In-Reply-To: <9a583963-6274-4539-a546-e05e3965d3cf@intel.com>

On Tue, Oct 13, 2026 at 09:45:58AM -0700, Dave Jiang wrote:
> 
> 
> 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

oops...overlooked in v3 but picked up for v4.

Thanks!


  reply	other threads:[~2026-10-17  0:08 UTC|newest]

Thread overview: 16+ 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
2026-10-17  0:08     ` Alison Schofield [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=atK8hp1DT_glZHT7@aschofie-mobl2.lan \
    --to=alison.schofield@intel.com \
    --cc=dave.jiang@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox