From: Greg KH <greg@kroah.com>
To: linux-kernel@vger.kernel.org, pcihpd-discuss@lists.sourceforge.net
Subject: Re: [PATCH] PCI and PCI Hotplug changes and fixes for 2.5.70
Date: Wed, 4 Jun 2003 19:05:47 -0700 [thread overview]
Message-ID: <10547787473026@kroah.com> (raw)
In-Reply-To: <10547787472227@kroah.com>
ChangeSet 1.1254.4.6, 2003/06/03 19:36:54-07:00, greg@kroah.com
[PATCH] IBM PCI hotplug: remove direct access of pci_devices variable.
drivers/hotplug/ibmphp_core.c | 13 +++++--------
1 files changed, 5 insertions(+), 8 deletions(-)
diff -Nru a/drivers/hotplug/ibmphp_core.c b/drivers/hotplug/ibmphp_core.c
--- a/drivers/hotplug/ibmphp_core.c Wed Jun 4 18:12:01 2003
+++ b/drivers/hotplug/ibmphp_core.c Wed Jun 4 18:12:01 2003
@@ -897,7 +897,6 @@
int rc;
u8 speed;
u8 cmd = 0x0;
- const struct list_head *tmp;
struct pci_dev * dev;
int retval;
@@ -945,13 +944,11 @@
cmd = HPC_BUS_100PCIXMODE;
break;
case BUS_SPEED_133:
- /* This is to take care of the bug in CIOBX chip*/
- list_for_each (tmp, &pci_devices) {
- dev = (struct pci_dev *) pci_dev_g (tmp);
- if (dev) {
- if ((dev->vendor == 0x1166) && (dev->device == 0x0101))
- ibmphp_hpc_writeslot (slot_cur, HPC_BUS_100PCIXMODE);
- }
+ /* This is to take care of the bug in CIOBX chip */
+ pci_for_each_dev(dev) {
+ if ((dev->vendor == PCI_VENDOR_ID_SERVERWORKS) &&
+ (dev->device == 0x0101))
+ ibmphp_hpc_writeslot (slot_cur, HPC_BUS_100PCIXMODE);
}
cmd = HPC_BUS_133PCIXMODE;
break;
next prev parent reply other threads:[~2003-06-05 2:08 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-05 1:31 [BK PATCH] PCI and PCI Hotplug changes and fixes for 2.5.70 Greg KH
2003-06-05 2:05 ` [PATCH] " Greg KH
2003-06-05 2:05 ` Greg KH
2003-06-05 2:05 ` Greg KH
2003-06-05 2:05 ` Greg KH
2003-06-05 2:05 ` Greg KH
2003-06-05 2:05 ` Greg KH
2003-06-05 2:05 ` Greg KH [this message]
2003-06-05 2:05 ` Greg KH
2003-06-05 2:05 ` Greg KH
2003-06-05 2:05 ` Greg KH
2003-06-05 2:05 ` Greg KH
2003-06-05 9:19 ` Russell King
2003-06-05 17:04 ` Greg KH
2003-06-05 17:57 ` Russell King
2003-06-05 2:14 ` [BK PATCH] " Greg KH
2003-06-05 8:38 ` Dave Jones
2003-06-05 8:49 ` Greg KH
2003-06-05 8:59 ` Dave Jones
2003-06-05 9:06 ` Greg KH
2003-06-05 9:18 ` Dave Jones
2003-06-05 9:22 ` Russell King
2003-06-05 17:18 ` Greg KH
2003-06-05 19:10 ` Dave Jones
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=10547787473026@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