提交 2adf7516 编写于 作者: B Bjorn Helgaas 提交者: Jesse Barnes

PCI: read bridge windows before filling in subtractive decode resources

No functional change; this fills in the bus subtractive decode resources
after reading the bridge window information rather than before.  Also,
print out the subtractive decode resources as we already do for the
positive decode windows.
Signed-off-by: NBjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: NJesse Barnes <jbarnes@virtuousgeek.org>
上级 fa27b2d1
...@@ -403,14 +403,19 @@ void __devinit pci_read_bridge_bases(struct pci_bus *child) ...@@ -403,14 +403,19 @@ void __devinit pci_read_bridge_bases(struct pci_bus *child)
child->secondary, child->subordinate, child->secondary, child->subordinate,
dev->transparent ? " (subtractive decode)" : ""); dev->transparent ? " (subtractive decode)" : "");
if (dev->transparent) {
for (i = 3; i < PCI_BUS_NUM_RESOURCES; i++)
child->resource[i] = child->parent->resource[i - 3];
}
pci_read_bridge_io(child); pci_read_bridge_io(child);
pci_read_bridge_mmio(child); pci_read_bridge_mmio(child);
pci_read_bridge_mmio_pref(child); pci_read_bridge_mmio_pref(child);
if (dev->transparent) {
for (i = 3; i < PCI_BUS_NUM_RESOURCES; i++) {
child->resource[i] = child->parent->resource[i - 3];
if (child->resource[i])
dev_printk(KERN_DEBUG, &dev->dev,
" bridge window %pR (subtractive decode)\n",
child->resource[i]);
}
}
} }
static struct pci_bus * pci_alloc_bus(void) static struct pci_bus * pci_alloc_bus(void)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册