Re: [PATCH 3/6] cxl/port: Arrange for always synchronous endpoint attach
From: Jonathan Cameron
Date: Mon Dec 15 2025 - 07:09:25 EST
On Wed, 3 Dec 2025 18:21:33 -0800
Dan Williams <dan.j.williams@xxxxxxxxx> wrote:
> Make it so that upon return from devm_cxl_add_endpoint() that
> cxl_mem_probe() can assume that the endpoint has had a chance to complete
> cxl_port_probe(). I.e. cxl_port module loading has completed prior to
> device registration.
>
> Delete the MODULE_SOFTDEP() as it is not sufficient for this purpose, but a
> hard link-time dependency is reliable. Specifically MODULE_SOFTDEP() does
> not guarantee that the module loading has completed prior to the completion
> of the current module's init.
>
> Cc: Smita Koralahalli <Smita.KoralahalliChannabasappa@xxxxxxx>
> Cc: Alejandro Lucero <alucerop@xxxxxxx>
> Signed-off-by: Dan Williams <dan.j.williams@xxxxxxxxx>
Reviewed-by: Jonathan Cameron <jonathan.cameron@xxxxxxxxxx>