cxl/acpi: Enumerate host bridge root ports
authorDan Williams <dan.j.williams@intel.com>
Wed, 9 Jun 2021 16:01:51 +0000 (09:01 -0700)
committerDan Williams <dan.j.williams@intel.com>
Thu, 10 Jun 2021 01:02:39 +0000 (18:02 -0700)
commit3b94ce7b7bc1b436465a93f19a50e0b495b429a1
tree8bbe939ba6313851ffd364dec78c009db1ba3379
parent7d4b5ca2e2cb5d28db628ec79c706bcfa832feea
cxl/acpi: Enumerate host bridge root ports

While the resources enumerated by the CEDT.CFMWS identify a cxl_port
with host bridges as downstream ports, host bridges themselves are
upstream ports that decode to downstream ports represented by PCIe Root
Ports. Walk the PCIe Root Ports connected to a CXL Host Bridge,
identified by the ACPI0016 _HID, and add each one as a cxl_dport of the
host bridge cxl_port.

For now, component registers are not enumerated, only the first order
uport / dport relationships.

Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://lore.kernel.org/r/162325451145.2293126.10149150938788969381.stgit@dwillia2-desk3.amr.corp.intel.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/cxl/acpi.c