lkml.org 
[lkml]   [2003]   [May]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
SubjectRe: [PATCH] PCI hotplug changes for 2.5.69
From
Date
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/

\
 
 \ /
  Last update: 2005-03-22 13:35    [W:0.022 / U:1.296 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site