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>
This commit is contained in:
parent
4d5c42a80b
commit
817b279467
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user