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

Jonathan Cameron
2025-11-11T14:52:12Z

On Mon, 3 Nov 2025 19:47:46 +0100
Robert Richter <rrichter@amd.com> 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@amd.com>
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@huawei.com>