]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
PCI: Add pci_setup_one_bridge_window()
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Fri, 29 Aug 2025 13:11:11 +0000 (16:11 +0300)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 16 Sep 2025 16:20:02 +0000 (11:20 -0500)
commitebbebd8873c4bab4f3553b22f43388de6349f1ee
tree670d1e9fc1baf0d912b18a74ade452dd9e1e6edc
parentaaae2863e7319b0201029868433e8356b923063c
PCI: Add pci_setup_one_bridge_window()

pci_bridge_release_resources() contains a resource type hack to work
around the unsuitable __pci_setup_bridge() interface. Extract the
switch statement that picks the correct bridge window setup function
from pci_claim_bridge_resource() into pci_setup_one_bridge_window() and
use it also in pci_bridge_release_resources().

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-23-ilpo.jarvinen@linux.intel.com
drivers/pci/setup-bus.c