cxl/core: Drop ->platform_res attribute for root decoders
authorDan Williams <dan.j.williams@intel.com>
Thu, 19 May 2022 01:02:39 +0000 (18:02 -0700)
committerDan Williams <dan.j.williams@intel.com>
Sat, 9 Jul 2022 23:23:37 +0000 (16:23 -0700)
commite50fe01e1f2a4aba2275edee7d5c77ac87674ddb
treea7eb8d6dcf27994a8231ef178d53c7b2a8516e59
parente8b7ea58abbd2335734e67cccbd992e4735366bd
cxl/core: Drop ->platform_res attribute for root decoders

Root decoders are responsible for hosting the available host address
space for endpoints and regions to claim. The tracking of that available
capacity can be done in iomem_resource directly. As a result, root
decoders no longer need to host their own resource tree. The
current ->platform_res attribute was added prematurely.

Otherwise, ->hpa_range fills the role of conveying the current decode
range of the decoder.

Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Adam Manzanares <a.manzanares@samsung.com>
Link: https://lore.kernel.org/r/165603873619.551046.791596854070136223.stgit@dwillia2-xfh
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/cxl/acpi.c
drivers/cxl/core/pci.c
drivers/cxl/core/port.c
drivers/cxl/cxl.h