PCI: acpiphp: Add is_hotplug_bridge detection
authorYinghai Lu <yinghai@kernel.org>
Mon, 21 Jan 2013 21:20:42 +0000 (13:20 -0800)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 25 Jan 2013 18:30:47 +0000 (11:30 -0700)
commit1f96a965e30d097a25818196e33d2dce923973a7
treeeaaa813c0d73c791522f0f16168a83010abb2c0b
parenta2766602ac6885f9514abd97821984cd152cdad3
PCI: acpiphp: Add is_hotplug_bridge detection

When system support hotplug bridge with children hotplug slots, we need
to make sure that parent bridge get preallocated resource so later when
device is plugged into children slot, those children devices will get
resource allocated.

We do not meet this problem, because for PCIe hotplug card, when acpiphp
is used, pci_scan_bridge will set that for us when detect hotplug bit in
slot cap.

Reported-and-tested-by: Jason Baron <jbaron@redhat.com>
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Jason Baron <jbaron@redhat.com>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/pci/hotplug/acpiphp_glue.c