PCI: Add MCFG quirks for HiSilicon Hip05/06/07 host controllers
authorDongdong Liu <liudongdong3@huawei.com>
Thu, 1 Dec 2016 06:45:35 +0000 (00:45 -0600)
committerBjorn Helgaas <helgaas@kernel.org>
Tue, 6 Dec 2016 19:45:49 +0000 (13:45 -0600)
commit5f00f1a0178cf52928366a5e1f376a65f1f3f389
tree94a3a7b9cdfae44cd1410920f3111f893a2295cb
parent2ca5b8ddc6f70d77a51851ba5e5cd0d39c27dd88
PCI: Add MCFG quirks for HiSilicon Hip05/06/07 host controllers

The PCIe controller in Hip05/Hip06/Hip07 SoCs is not completely
ECAM-compliant.  It is non-ECAM only for the RC bus config space; for any
other bus underneath the root bus it does support ECAM access.

Add specific quirks for PCI config space accessors.  This involves:
1. New initialization call hisi_pcie_init() to obtain RC base
addresses from PNP0C02 at the root of the ACPI namespace (under \_SB).
2. New entry in common quirk array.

[bhelgaas: move to pcie-hisi.c and change Makefile/ifdefs so quirk doesn't
depend on CONFIG_PCI_HISI]
Signed-off-by: Dongdong Liu <liudongdong3@huawei.com>
Signed-off-by: Gabriele Paoloni <gabriele.paoloni@huawei.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/acpi/pci_mcfg.c
drivers/pci/host/Makefile
drivers/pci/host/pcie-hisi.c
include/linux/pci-ecam.h