Re: [PATCH v4 05/14] cxl: Simplify cxl_root_ops allocation and handling

From: Jonathan Cameron

Date: Tue Nov 11 2025 - 09:52:12 EST


On Mon, 3 Nov 2025 19:47:46 +0100
Robert Richter <rrichter@xxxxxxx> wrote:

> A root port's callback handlers are collected in struct cxl_root_ops.
> The structure is dynamically allocated, though it contains only a
> single pointer in it. This also requires to check two pointers to
> check for the existance of a callback.
>
> Simplify the allocation, release and handler check by embedding the
> ops statical in struct cxl_root.

statically

>
> Signed-off-by: Robert Richter <rrichter@xxxxxxx>
Make sense on it's own. Maybe one to pick up early if there are blockers
on later patches.

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