Re: [PATCH v20 03/22] cxl/mem: Introduce a memdev creation ->probe() operation

Jonathan Cameron
2025-11-12T15:00:54Z

On Mon, 10 Nov 2025 15:36:38 +0000
alejandro.lucero-palau@amd.com wrote:

> From: Dan Williams <dan.j.williams@intel.com>
>
> Allow for a driver to pass a routine to be called in cxl_mem_probe()
> context. This ability mirrors the semantics of faux_device_create() and
> allows for the caller to run CXL-topology-attach dependent logic on behalf
> of the caller.
>
> This capability is needed for CXL accelerator device drivers that need to
> make decisions about enabling CXL dependent functionality in the device, or
> falling back to PCIe-only operation.
>
> The probe callback runs after the port topology is successfully attached
> for the given memdev.
>
> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Other than possible churn form patch 1 feedback LGTM.
If that churn is large, perhaps drop this tag, if not...

Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com>