PCI/ACPI: Provide acpi_get_rc_resources() for ARM64 platform
authorDongdong Liu <liudongdong3@huawei.com>
Thu, 1 Dec 2016 06:33:42 +0000 (00:33 -0600)
committerBjorn Helgaas <helgaas@kernel.org>
Tue, 6 Dec 2016 19:45:49 +0000 (13:45 -0600)
commit169de969c0188be69bd5ff1e148d42a49bf47738
tree431b32c16b0fd30d5ed0cc8dd64eb6de5d39cea2
parent5b69b85ba1ddd36be01f5c57830b37a3c8256009
PCI/ACPI: Provide acpi_get_rc_resources() for ARM64 platform

The acpi_get_rc_resources() is used to get the RC register address that can
not be described in MCFG.  It takes the _HID & segment to look for and
outputs the RC address resource.  Use PNP0C02 devices to describe such RC
address resource.  Use _UID to match segment to tell which root bus the
PNP0C02 resource belongs to.

[bhelgaas: add dev argument, wrap in #ifdef CONFIG_PCI_QUIRKS]
Signed-off-by: Dongdong Liu <liudongdong3@huawei.com>
Signed-off-by: Tomasz Nowicki <tn@semihalf.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pci-acpi.c
drivers/pci/pci.h