From: Greg KH <greg@kroah.com>
To: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] PCI fixes for 2.6.0-test3
Date: Thu, 21 Aug 2003 10:31:08 -0700 [thread overview]
Message-ID: <10614870682543@kroah.com> (raw)
In-Reply-To: <10614870683797@kroah.com>
ChangeSet 1.1123.21.2, 2003/08/13 17:42:56-07:00, janiceg@us.ibm.com
[PATCH] PCI: testing for probe errors in pci-driver.c
Currently if __pci_device_probe locates the correct
device driver, but receives an error from the static
drv->probe function, this error is not reported.
The attached patch reports the above error condition
to the caller. Only when a match for the device in
the static tables is not found, is the dynamic driver
table searched.
drivers/pci/pci-driver.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff -Nru a/drivers/pci/pci-driver.c b/drivers/pci/pci-driver.c
--- a/drivers/pci/pci-driver.c Thu Aug 21 10:22:52 2003
+++ b/drivers/pci/pci-driver.c Thu Aug 21 10:22:52 2003
@@ -122,10 +122,8 @@
if (!pci_dev->driver && drv->probe) {
error = pci_device_probe_static(drv, pci_dev);
- if (error >= 0)
- return error;
-
- error = pci_device_probe_dynamic(drv, pci_dev);
+ if (error == -ENODEV)
+ error = pci_device_probe_dynamic(drv, pci_dev);
}
return error;
}
next prev parent reply other threads:[~2003-08-21 17:39 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-21 17:29 [BK PATCH] PCI fixes for 2.6.0-test3 Greg KH
2003-08-21 17:31 ` [PATCH] " Greg KH
2003-08-21 17:31 ` Greg KH [this message]
2003-08-21 17:31 ` Greg KH
2003-08-21 17:31 ` Greg KH
2003-08-21 17:31 ` Greg KH
2003-08-21 17:31 ` Greg KH
2003-08-21 17:31 ` Greg KH
2003-08-21 17:31 ` Greg KH
2003-08-21 17:31 ` 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=10614870682543@kroah.com \
--to=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
/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