cxl/region: Add function to find a port's switch decoder by range
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> Reviewed-by:
Jonathan Cameron <Jonathan.Cameron@huawei.com> Reviewed-by:
Dave Jiang <dave.jiang@intel.com> Reviewed-by:
"Fabio M. De Francesco" <fabio.m.de.francesco@linux.intel.com> Tested-by:
Gregory Price <gourry@gourry.net> Acked-by:
Dan Williams <dan.j.williams@intel.com> Link: https://patch.msgid.link/20250509150700.2817697-12-rrichter@amd.com Signed-off-by:
Dave Jiang <dave.jiang@intel.com>
Loading
Please sign in to comment