[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20250107035708.1134954-9-ming.li@zohomail.com>
Date: Tue, 7 Jan 2025 11:57:08 +0800
From: Li Ming <ming.li@...omail.com>
To: dave@...olabs.net,
jonathan.cameron@...wei.com,
dave.jiang@...el.com,
alison.schofield@...el.com,
vishal.l.verma@...el.com,
ira.weiny@...el.com,
dan.j.williams@...el.com
Cc: linux-cxl@...r.kernel.org,
linux-kernel@...r.kernel.org,
Li Ming <ming.li@...omail.com>
Subject: [RFC PATCH 8/8] cxl/mem: Adjust cxl_dport_init_ras_reporting() invoked position
component registers of endpoint's parent dport is set up in
devm_cxl_add_endpoint(), so cxl_dport_init_ras_reporting() should be
only invoked after that.
Signed-off-by: Li Ming <ming.li@...omail.com>
---
drivers/cxl/mem.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/cxl/mem.c b/drivers/cxl/mem.c
index 39da99a4bf4d..73b5a28db8cb 100644
--- a/drivers/cxl/mem.c
+++ b/drivers/cxl/mem.c
@@ -79,6 +79,8 @@ static int devm_cxl_add_endpoint(struct device *host, struct cxl_memdev *cxlmd,
return -ENXIO;
}
+ cxl_dport_init_ras_reporting(parent_dport, &cxlmd->dev);
+
return 0;
}
@@ -165,8 +167,6 @@ static int cxl_mem_probe(struct device *dev)
else
endpoint_parent = &parent_port->dev;
- cxl_dport_init_ras_reporting(dport, dev);
-
scoped_guard(device, endpoint_parent) {
if (!endpoint_parent->driver) {
dev_err(dev, "CXL port topology %s not enabled\n",
--
2.34.1
Powered by blists - more mailing lists