[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240913183234.17302-1-gourry@gourry.net>
Date: Fri, 13 Sep 2024 14:32:34 -0400
From: Gregory Price <gourry@...rry.net>
To: linux-cxl@...r.kernel.org
Cc: linux-kernel@...r.kernel.org,
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,
rrichter@....com,
terry.bowman@....com
Subject: [PATCH] cxl/core/port: defer probe when memdev fails to find correct port
Depending on device/hierarchy readiness, it can be possible for the
async probe process to attempt to register an endpoint before the
entire port hierarchy is ready. This currently fails with -ENXIO.
Return -EPROBE_DEFER to try again later automatically (which is
what the local comments already say we should do anyway).
Signed-off-by: Gregory Price <gourry@...rry.net>
---
drivers/cxl/core/port.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/cxl/core/port.c b/drivers/cxl/core/port.c
index 1d5007e3795a..d6bebf70d142 100644
--- a/drivers/cxl/core/port.c
+++ b/drivers/cxl/core/port.c
@@ -1553,7 +1553,7 @@ static int add_port_attach_ep(struct cxl_memdev *cxlmd,
*/
dev_dbg(&cxlmd->dev, "%s is a root dport\n",
dev_name(dport_dev));
- return -ENXIO;
+ return -EPROBE_DEFER;
}
parent_port = find_cxl_port(dparent, &parent_dport);
--
2.43.0
Powered by blists - more mailing lists