public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: linux-kernel@vger.kernel.org, pcihpd-discuss@lists.sourceforge.net
Subject: Re: [PATCH] PCI hotplug changes for 2.5.69
Date: Tue, 6 May 2003 16:06:53 -0700	[thread overview]
Message-ID: <10522624132993@kroah.com> (raw)
In-Reply-To: <10522624131723@kroah.com>

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");


  reply	other threads:[~2003-05-06 22:52 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-06 23:05 [BK PATCH] PCI hotplug changes for 2.5.69 Greg KH
2003-05-06 23:06 ` [PATCH] " Greg KH
2003-05-06 23:06   ` Greg KH
2003-05-06 23:06     ` Greg KH
2003-05-06 23:06       ` Greg KH
2003-05-06 23:06         ` Greg KH
2003-05-06 23:06           ` Greg KH
2003-05-06 23:06             ` Greg KH [this message]
2003-05-06 23:06               ` Greg KH
2003-05-06 23:06                 ` Greg KH

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=10522624132993@kroah.com \
    --to=greg@kroah.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pcihpd-discuss@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox