Re: [PATCH] PCI hotplug changes for 2.5.69

Greg KH (greg@kroah.com)
Tue, 6 May 2003 16:06:53 -0700


ChangeSet 1.1084, 2003/05/06 15:35:45-07:00, greg@kroah.com

[PATCH] PCI Hotplug: fix up the acpi driver to work properly again.

drivers/hotplug/acpiphp_glue.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletion(-)

diff -Nru a/drivers/hotplug/acpiphp_glue.c b/drivers/hotplug/acpiphp_glue.c
--- a/drivers/hotplug/acpiphp_glue.c Tue May 6 15:55:50 2003
+++ b/drivers/hotplug/acpiphp_glue.c Tue May 6 15:55:50 2003
@@ -806,6 +806,7 @@
struct list_head *l;
struct acpiphp_func *func;
int retval = 0;
+ int num;

if (slot->flags & SLOT_ENABLED)
goto err_exit;
@@ -825,7 +826,10 @@
goto err_exit;

/* returned `dev' is the *first function* only! */
- dev = pci_scan_slot(slot->bridge->pci_bus, PCI_DEVFN(slot->device, 0));
+ num = pci_scan_slot(slot->bridge->pci_bus, PCI_DEVFN(slot->device, 0));
+ if (num)
+ pci_bus_add_devices(slot->bridge->pci_bus);
+ dev = pci_find_slot(slot->bridge->bus, PCI_DEVFN(slot->device, 0));

if (!dev) {
err("No new device found\n");

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/