aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomasz Nowicki <tn@semihalf.com>2016-02-16 12:36:14 +0100
committerGraeme Gregory <graeme.gregory@linaro.org>2016-03-16 13:33:14 +0000
commit4e2ae7321db4b84d0fa4e0064f115f98434934ed (patch)
tree29bf584fc5161ca10016701b6f3ac46e6b822503
parent4e2d019ec317b18f166f24429e914e65a5d04cfb (diff)
arm64, pci, acpi: Start using ACPI based PCI host bridge driver for ARM64.topic-pci-erp-20160426.0
It is perfectly fine to use ACPI_PCI_HOST_GENERIC for ARM64, so lets get rid of PCI init empty stub, related ACPI header and go with full-blown PCI host controller driver. Signed-off-by: Tomasz Nowicki <tn@semihalf.com> TO: Catalin Marinas <catalin.marinas@arm.com> TO: Lorenzo Pieralisi <Lorenzo.Pieralisi@arm.com> TO: Will Deacon <will.deacon@arm.com> TO: Arnd Bergmann <arnd@arndb.de> CC: Liviu Dudau <Liviu.Dudau@arm.com> Tested-by: Duc Dang <dhdang@apm.com> Tested-by: Dongdong Liu <liudongdong3@huawei.com> Tested-by: Hanjun Guo <hanjun.guo@linaro.org> Tested-by: Graeme Gregory <graeme.gregory@linaro.org> Tested-by: Sinan Kaya <okaya@codeaurora.org>
-rw-r--r--arch/arm64/Kconfig1
-rw-r--r--arch/arm64/kernel/pci.c9
2 files changed, 1 insertions, 9 deletions
diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
index 74470b4775bd..4c2f9296724f 100644
--- a/arch/arm64/Kconfig
+++ b/arch/arm64/Kconfig
@@ -2,6 +2,7 @@ config ARM64
def_bool y
select ACPI_CCA_REQUIRED if ACPI
select ACPI_GENERIC_GSI if ACPI
+ select ACPI_PCI_HOST_GENERIC if ACPI
select ACPI_REDUCED_HARDWARE_ONLY if ACPI
select ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE
select ARCH_HAS_ELF_RANDOMIZE
diff --git a/arch/arm64/kernel/pci.c b/arch/arm64/kernel/pci.c
index 6e77e1bbadaa..1de01684a469 100644
--- a/arch/arm64/kernel/pci.c
+++ b/arch/arm64/kernel/pci.c
@@ -65,12 +65,3 @@ int pcibios_alloc_irq(struct pci_dev *dev)
return 0;
}
-
-#ifdef CONFIG_ACPI
-/* Root bridge scanning */
-struct pci_bus *pci_acpi_scan_root(struct acpi_pci_root *root)
-{
- /* TODO: Should be revisited when implementing PCI on ACPI */
- return NULL;
-}
-#endif