Messages in this thread Patch in this message |  | | Date | Thu, 22 Nov 2001 15:04:18 +0300 | From | Ivan Kokshaysky <> | Subject | [patch non-x86] PCI-PCI bridges fix |
| |
Bridge resources weren't added to the resource tree. This was harmless for most real-life configurations (especially on Alpha), but certainly it will be a problem with the hotplug stuff (thinking of ES45).
Ivan.
--- 2.4.15p9/drivers/pci/setup-bus.c Fri Oct 5 05:47:08 2001 +++ linux/drivers/pci/setup-bus.c Wed Nov 21 20:16:24 2001 @@ -201,6 +201,16 @@ pbus_assign_resources(struct pci_bus *bu b->resource[0]->end = ranges->io_end - 1; b->resource[1]->end = ranges->mem_end - 1; + /* Add bridge resources to the resource tree. */ + if (b->resource[0]->end > b->resource[0]->start && + request_resource(bus->resource[0], b->resource[0]) < 0) + printk(KERN_ERR "PCI: failed to reserve IO " + "for bus %d\n", b->number); + if (b->resource[1]->end > b->resource[1]->start && + request_resource(bus->resource[1], b->resource[1]) < 0) + printk(KERN_ERR "PCI: failed to reserve MEM " + "for bus %d\n", b->number); + pci_setup_bridge(b); } } - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|  |