]> Gentwo Git Trees - linux/.git/commit
PCI: Use pbus_select_window_for_type() during mem window sizing
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Fri, 29 Aug 2025 13:11:08 +0000 (16:11 +0300)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 16 Sep 2025 16:19:52 +0000 (11:19 -0500)
commitae88d0b9c57f70086dca4f8ccb14c64b2f144c58
tree017a8c256871e94e0844a99d906262d3aea560b8
parent13016e15d595125ec2da83e1715083efe7499f91
PCI: Use pbus_select_window_for_type() during mem window sizing

__pci_bus_size_bridges() goes to great lengths of helping pbus_size_mem()
in which types it should put into a particular bridge window, requiring
passing up to three resource type into pbus_size_mem().

Instead of having complex logic in __pci_bus_size_bridges() and a
non-straightforward interface between those functions, use
pbus_select_window_for_type() and pbus_select_window() to find the correct
bridge window and compare if the resources belong to that window.

Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Link: https://patch.msgid.link/20250829131113.36754-20-ilpo.jarvinen@linux.intel.com
drivers/pci/setup-bus.c