Skip to content

Commit 71a082e

Browse files
mjg59jbarnes993
authored andcommitted
PCI hotplug: Change link order of pciehp & acpiphp
Some hardware exposes PCIE slots in such a way that they can be claimed by either the acpiphp or pciehp driver. pciehp is the preferred driver if the firmware allows the OS to claim control via the _OSC method so should be loaded first - if it fails to bind (either due to a missing _OSC method or the firmware refusing to hand off control) then we can fall back to acpiphp or a vendor-specific driver. This patch simply changes the link order to ensure that pciehp will be initialised before acpiphp if both are statically built into the kernel. Signed-off-by: Matthew Garrett <mjg@redhat.com> Acked-by: Randy Dunlap <randy.dunlap@oracle.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
1 parent bf4162b commit 71a082e

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎drivers/pci/hotplug/Makefile‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,15 @@
55
obj-$(CONFIG_HOTPLUG_PCI) += pci_hotplug.o
66
obj-$(CONFIG_HOTPLUG_PCI_COMPAQ) += cpqphp.o
77
obj-$(CONFIG_HOTPLUG_PCI_IBM) += ibmphp.o
8+
9+
# pciehp should be linked before acpiphp in order to allow the native driver
10+
# to attempt to bind first. We can then fall back to generic support.
11+
12+
obj-$(CONFIG_HOTPLUG_PCI_PCIE) += pciehp.o
813
obj-$(CONFIG_HOTPLUG_PCI_ACPI) += acpiphp.o
914
obj-$(CONFIG_HOTPLUG_PCI_ACPI_IBM) += acpiphp_ibm.o
1015
obj-$(CONFIG_HOTPLUG_PCI_CPCI_ZT5550) += cpcihp_zt5550.o
1116
obj-$(CONFIG_HOTPLUG_PCI_CPCI_GENERIC) += cpcihp_generic.o
12-
obj-$(CONFIG_HOTPLUG_PCI_PCIE) += pciehp.o
1317
obj-$(CONFIG_HOTPLUG_PCI_SHPC) += shpchp.o
1418
obj-$(CONFIG_HOTPLUG_PCI_RPA) += rpaphp.o
1519
obj-$(CONFIG_HOTPLUG_PCI_RPA_DLPAR) += rpadlpar_io.o

0 commit comments

Comments
 (0)