]> asedeno.scripts.mit.edu Git - linux.git/commit
PCI: acpiphp: Create companion ACPI devices before creating PCI devices
authorJiang Liu <jiang.liu@huawei.com>
Wed, 30 Jan 2013 16:10:09 +0000 (00:10 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 1 Feb 2013 23:07:51 +0000 (16:07 -0700)
commit2ca344e8c798127ae01e656838b9b06ed41d1461
tree52bb47f2f69f7c52ff67b50bccfbc03cbb5d8080
parent40064acf0c2ca2fdc78cc6f09c3426be8db38a84
PCI: acpiphp: Create companion ACPI devices before creating PCI devices

With commit 4f535093cf8f6da8c "PCI: Put pci_dev in device tree as
early as possible", companion ACPI devices should be created before
creating corresponding PCI devices, otherwise it will break the ACPI
PCI binding logic.

Without this patch, the /sys/bus/pci/devices/.../firmware_node symlink
is missing after hot-removing and hot-adding a device with acpiphp.

Signed-off-by: Jiang Liu <jiang.liu@huawei.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/hotplug/acpiphp_glue.c