diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2023-02-22 22:47:27 +0300 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2023-02-22 22:47:27 +0300 |
commit | ebdce9e3d085f7891463fd0046e04201d1604d0d (patch) | |
tree | f762397ea3a58b3a598d1baf25962facf129b8a6 /drivers/pci/probe.c | |
parent | 0b7af1ddcf62e6f497b26e967a65dad5d46d79ae (diff) | |
parent | 9d8ba74a181b1c81def21168795ed96cbe6f05ed (diff) | |
download | linux-ebdce9e3d085f7891463fd0046e04201d1604d0d.tar.xz |
Merge branch 'pci/resource'
- Realign space as required by bridge windows after dividing it up (Mika
Westerberg)
- Account for space required by other devices on the bus before
distributing it all to bridges (Mika Westerberg)
- Distribute spare resources to root bus devices as well as to other
hotplug bridges (Mika Westerberg)
- Fix bug that dropped root bus resources that end at zero, e.g., a host
bridge that leads only to bus 00 (Geert Uytterhoeven)
* pci/resource:
PCI: Fix dropping valid root bus resources with .end = zero
PCI: Distribute available resources for root buses, too
PCI: Take other bus devices into account when distributing resources
PCI: Align extra resources for hotplug bridges properly
Diffstat (limited to 'drivers/pci/probe.c')
-rw-r--r-- | drivers/pci/probe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c index b1d80c1d7a69..6048d164ca9a 100644 --- a/drivers/pci/probe.c +++ b/drivers/pci/probe.c @@ -996,7 +996,7 @@ static int pci_register_host_bridge(struct pci_host_bridge *bridge) resource_list_for_each_entry_safe(window, n, &resources) { offset = window->offset; res = window->res; - if (!res->end) + if (!res->flags && !res->start && !res->end) continue; list_move_tail(&window->node, &bridge->windows); |