path: root/arch/arm64/kernel/pci.c
diff options
authorTomasz Nowicki <tn@semihalf.com>2016-05-10 16:01:52 +0200
committerGraeme Gregory <graeme.gregory@linaro.org>2016-05-17 11:17:27 +0100
commit3e557ac6385c38eff0f4fd21a62b619b4187201e (patch)
tree71815241aeb02ac42f5b69268d55084a00383e4b /arch/arm64/kernel/pci.c
parent28a6834c8da66bb3fb8424a01ea81db8b212f4b4 (diff)
arm64, pci, acpi: Provide ACPI-specific prerequisites for PCI bus enumeration.
ACPI requires to run acpi_pci_{add|remove}_bus while new PCI bus is created. This allows to do some ACPI-specific additional configuration, like PCI hotplug slot enumeration. In order to fulfill these requirements, we implement arch-specific pcibios_{add|remove}_bus calls and call acpi_pci_{add|remove}_bus from there. 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>
Diffstat (limited to 'arch/arm64/kernel/pci.c')
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/arm64/kernel/pci.c b/arch/arm64/kernel/pci.c
index 15109c1143ff..eeec5f6df82b 100644
--- a/arch/arm64/kernel/pci.c
+++ b/arch/arm64/kernel/pci.c
@@ -17,6 +17,7 @@
#include <linux/mm.h>
#include <linux/of_pci.h>
#include <linux/of_platform.h>
+#include <linux/pci-acpi.h>
#include <linux/slab.h>
@@ -64,6 +65,16 @@ int pcibios_alloc_irq(struct pci_dev *dev)
return 0;
+void pcibios_add_bus(struct pci_bus *bus)
+ acpi_pci_add_bus(bus);
+void pcibios_remove_bus(struct pci_bus *bus)
+ acpi_pci_remove_bus(bus);
* raw_pci_read/write - Platform-specific PCI config space access.