mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 19:56:18 +00:00
Revert "PCI: get larger bridge ranges when space is available"
This reverts commit 308cf8e13f
. This
patch had trouble with transparent bridges, among other things. A more
readable and correct version should land in 2.6.33.
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
This commit is contained in:
parent
964fe080d9
commit
55a1098476
1 changed files with 2 additions and 11 deletions
|
@ -299,17 +299,8 @@ static struct resource *find_free_bus_resource(struct pci_bus *bus, unsigned lon
|
|||
r = bus->resource[i];
|
||||
if (r == &ioport_resource || r == &iomem_resource)
|
||||
continue;
|
||||
if (r && (r->flags & type_mask) == type) {
|
||||
if (!r->parent)
|
||||
if (r && (r->flags & type_mask) == type && !r->parent)
|
||||
return r;
|
||||
/*
|
||||
* if there is no child under that, we should release
|
||||
* and use it. don't need to reset it, pbus_size_* will
|
||||
* set it again
|
||||
*/
|
||||
if (!r->child && !release_resource(r))
|
||||
return r;
|
||||
}
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue