summaryrefslogtreecommitdiffstats
path: root/drivers/pci/probe.c
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2023-02-22 20:47:27 +0100
committerBjorn Helgaas <bhelgaas@google.com>2023-02-22 20:47:27 +0100
commitebdce9e3d085f7891463fd0046e04201d1604d0d (patch)
treef762397ea3a58b3a598d1baf25962facf129b8a6 /drivers/pci/probe.c
parentMerge branch 'pci/reset' (diff)
parentPCI: Fix dropping valid root bus resources with .end = zero (diff)
downloadlinux-ebdce9e3d085f7891463fd0046e04201d1604d0d.tar.xz
linux-ebdce9e3d085f7891463fd0046e04201d1604d0d.zip
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.c2
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);