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

From: Gregory Price
Date: Fri Feb 07 2025 - 11:29:36 EST


On Fri, Feb 07, 2025 at 04:37:48PM +0100, Robert Richter 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@xxxxxxx>

Reviewed-by: Gregory Price <gourry@xxxxxxxxxx>