[PATCH V7 10/11] arm64, pci, acpi: Provide ACPI-specific prerequisites for PCI bus enumeration.
Tomasz Nowicki
tn at semihalf.com
Tue May 10 08:20:00 PDT 2016
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 at semihalf.com>
To: Catalin Marinas <catalin.marinas at arm.com>
To: Lorenzo Pieralisi <Lorenzo.Pieralisi at arm.com>
To: Will Deacon <will.deacon at arm.com>
To: Arnd Bergmann <arnd at arndb.de>
---
arch/arm64/kernel/pci.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/arch/arm64/kernel/pci.c b/arch/arm64/kernel/pci.c
index 15109c11..eeec5f6 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.
*/
--
1.9.1
More information about the linux-arm-kernel
mailing list