Re: [PATCH v3 13/18] cxl/region: Add function to find a port's switch decoder by range

Jonathan Cameron
2025-02-14T16:29:29Z

On Tue, 11 Feb 2025 10:53:43 +0100
Robert Richter <rrichter@amd.com> wrote:

> Factor out code to find the switch decoder of a port for a specific
> address range. Reuse the code to search a root decoder, create the
> function cxl_port_find_switch_decoder() and rework
> match_root_decoder_by_range() to be usable for switch decoders too.
>
> Signed-off-by: Robert Richter <rrichter@amd.com>
> Reviewed-by: Gregory Price <gourry@gourry.net>
> Tested-by: Gregory Price <gourry@gourry.net>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>