Re: [PATCH v1 05/29] cxl/region: Move find_cxl_root() to cxl_add_to_region()

From: Gregory Price
Date: Tue Jan 07 2025 - 11:50:03 EST


On Tue, Jan 07, 2025 at 03:09:51PM +0100, Robert Richter wrote:
> When adding an endpoint to a region, the root port is determined
> first. Move this directly into cxl_add_to_region(). This is in
> preparation of the initialization of endpoints that iterates the port
> hierarchy from the endpoint up to the root port.
>
> As a side-effect the root argument is removed from the argument lists
> of cxl_add_to_region() and related functions. Now, the endpoint is the
> only parameter to add a region. This simplifies the function
> interface.
>
> Signed-off-by: Robert Richter <rrichter@xxxxxxx>

Reviewed-by: Gregory Price <gourry@xxxxxxxxxx>