Skip to content

Commit 817b279

Browse files
committed
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 <[email protected]> Reviewed-by: Alison Schofield <[email protected]> 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 <[email protected]>
1 parent 4d5c42a commit 817b279

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

drivers/cxl/core/region.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1527,19 +1527,15 @@ static struct cxl_region *devm_cxl_add_region(struct cxl_root_decoder *cxlrd,
15271527
enum cxl_decoder_type type)
15281528
{
15291529
struct cxl_port *port = to_cxl_port(cxlrd->cxlsd.cxld.dev.parent);
1530-
struct cxl_decoder *cxld = &cxlrd->cxlsd.cxld;
1531-
struct cxl_region_params *p;
15321530
struct cxl_region *cxlr;
15331531
struct device *dev;
15341532
int rc;
15351533

15361534
cxlr = cxl_region_alloc(cxlrd, id);
15371535
if (IS_ERR(cxlr))
15381536
return cxlr;
1539-
p = &cxlr->params;
15401537
cxlr->mode = mode;
15411538
cxlr->type = type;
1542-
p->interleave_granularity = cxld->interleave_granularity;
15431539

15441540
dev = &cxlr->dev;
15451541
rc = dev_set_name(dev, "region%d", id);

0 commit comments

Comments
 (0)