]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: hotplug: acpiphp: avoid acpiphp "cannot get bridge info" PCI hotplug failure
authorGary Hade <garyhade@us.ibm.com>
Thu, 5 Jul 2007 18:10:48 +0000 (11:10 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 11 Jul 2007 23:02:13 +0000 (16:02 -0700)
commit471bb8e0568695a2d338317fdd9c4c04fad9c3bc
treead6f926e5dbee6af857fd047860571deccbb9b8c
parent96bdab02b9ddd98bfeff9679c1c06d70ed3eb496
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