summaryrefslogtreecommitdiff
path: root/drivers/cxl/core
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2022-08-02 01:38:06 +0300
committerDan Williams <dan.j.williams@intel.com>2022-08-02 01:38:06 +0300
commit817b279467404ae3b16db8886b87eaefd8b13a6d (patch)
treeb5dd56ffa2dca9cface0850211be09fb9b9e1bc3 /drivers/cxl/core
parent4d5c42a80bd17d1979dbcd40c5c44ff3c93e1476 (diff)
downloadlinux-817b279467404ae3b16db8886b87eaefd8b13a6d.tar.xz
cxl/region: Stop initializing interleave granularity
In preparation for a patch that validates that the region ways setting is compatible with the granularity setting, the initial granularity setting needs to start at zero to indicate "unset". Reviewed-by: Vishal Verma <vishal.l.verma@intel.com> Reviewed-by: Alison Schofield <alison.schofield@intel.com> Link: https://lore.kernel.org/r/165853777484.2430596.3423921169034844397.stgit@dwillia2-xfh.jf.intel.com [djbw: fix up unused variable] Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/cxl/core')
-rw-r--r--drivers/cxl/core/region.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/cxl/core/region.c b/drivers/cxl/core/region.c
index 55691f6e97d6..594e5bf9e5f8 100644
--- a/drivers/cxl/core/region.c
+++ b/drivers/cxl/core/region.c
@@ -1527,8 +1527,6 @@ static struct cxl_region *devm_cxl_add_region(struct cxl_root_decoder *cxlrd,
enum cxl_decoder_type type)
{
struct cxl_port *port = to_cxl_port(cxlrd->cxlsd.cxld.dev.parent);
- struct cxl_decoder *cxld = &cxlrd->cxlsd.cxld;
- struct cxl_region_params *p;
struct cxl_region *cxlr;
struct device *dev;
int rc;
@@ -1536,10 +1534,8 @@ static struct cxl_region *devm_cxl_add_region(struct cxl_root_decoder *cxlrd,
cxlr = cxl_region_alloc(cxlrd, id);
if (IS_ERR(cxlr))
return cxlr;
- p = &cxlr->params;
cxlr->mode = mode;
cxlr->type = type;
- p->interleave_granularity = cxld->interleave_granularity;
dev = &cxlr->dev;
rc = dev_set_name(dev, "region%d", id);