From: Russell King <rmk@arm.linux.org.uk>
To: Linux Kernel List <linux-kernel@vger.kernel.org>
Subject: Re: [CFT] PCI probing for cardbus (4/5)
Date: Wed, 5 Mar 2003 00:40:24 +0000 [thread overview]
Message-ID: <20030305004024.E25251@flint.arm.linux.org.uk> (raw)
In-Reply-To: <20030305003635.A25251@flint.arm.linux.org.uk>; from rmk@arm.linux.org.uk on Wed, Mar 05, 2003 at 12:36:35AM +0000
diff -u orig/drivers/pci/setup-bus.c linux/drivers/pci/setup-bus.c
--- orig/drivers/pci/setup-bus.c Tue Feb 25 10:57:49 2003
+++ linux/drivers/pci/setup-bus.c Tue Feb 25 11:17:33 2003
@@ -350,6 +350,7 @@
{
struct pci_bus *b;
int found_vga = pbus_assign_resources_sorted(bus);
+ struct pci_dev *dev;
if (found_vga) {
/* Propagate presence of the VGA to upstream bridges */
@@ -357,9 +358,12 @@
b->resource[0]->flags |= IORESOURCE_BUS_HAS_VGA;
}
}
- list_for_each_entry(b, &bus->children, node) {
- pci_bus_assign_resources(b);
- pci_setup_bridge(b);
+ list_for_each_entry(dev, &bus->devices, bus_list) {
+ b = dev->subordinate;
+ if (b) {
+ pci_bus_assign_resources(b);
+ pci_setup_bridge(b);
+ }
}
}
EXPORT_SYMBOL(pci_bus_assign_resources);
--
Russell King (rmk@arm.linux.org.uk) The developer of ARM Linux
http://www.arm.linux.org.uk/personal/aboutme.html
next prev parent reply other threads:[~2003-03-05 0:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-05 0:36 [CFT] PCI probing for cardbus Russell King
2003-03-05 0:39 ` [CFT] PCI probing for cardbus (1/5) Russell King
2003-03-05 0:39 ` [CFT] PCI probing for cardbus (2/5) Russell King
2003-03-05 0:40 ` [CFT] PCI probing for cardbus (3/5) Russell King
2003-03-05 0:40 ` Russell King [this message]
2003-03-05 0:40 ` [CFT] PCI probing for cardbus (5/5) Russell King
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=20030305004024.E25251@flint.arm.linux.org.uk \
--to=rmk@arm.linux.org.uk \
--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