Re: [PATCH v9 04/13] cxl: Simplify cxl_root_ops allocation and handling
From: Alison Schofield
Date: Tue Jan 13 2026 - 22:16:41 EST
On Sat, Jan 10, 2026 at 12:46:49PM +0100, Robert Richter 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 statically in struct cxl_root.
>
Reviewed-by: Alison Schofield <alison.schofield@xxxxxxxxx>