PCI: hotplug: acpiphp: avoid acpiphp "cannot get bridge info" PCI hotplug failure
commit0bbd6424c55f0ab9e7fcd6a851bc49e265259ff5
authorGary Hade <garyhade@us.ibm.com>
Thu, 5 Jul 2007 18:10:48 +0000 (5 11:10 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 11 Jul 2007 23:02:13 +0000 (11 16:02 -0700)
treead6f926e5dbee6af857fd047860571deccbb9b8c
parent9ef2241b18266d75319e7d66156243bd9010be44
PCI: hotplug: acpiphp: avoid acpiphp "cannot get bridge info" PCI hotplug failure

On some systems, the ACPI bus check event can reference a bridge that is
higher in the ACPI hierarchy than the bridge immediately above the
hotplug PCI slot into which an adapter was just inserted.  The current
'acpiphp' code expects the bus check event to reference the bridge
immediately above the slot that received the adapter so the hotplug
operation can fail on these systems with the message "acpiphp_glue:
cannot get bridge info".  This change fixes the problem by
re-enumerating all slots that lie below the bridge referenced by the bus
check event, including those slots that may be located under lower level
PCI-to-PCI bridge(s).

Signed-off-by: Gary Hade <garyhade@us.ibm.com>
Cc: <lcm@us.ibm.com>
Signed-off-by: Kristen Carlson Accardi <kristen.c.accardi@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/pci/hotplug/acpiphp_glue.c