]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
PCI: Use preserve_config in place of pci_flags
authorVidya Sagar <vidyas@nvidia.com>
Sun, 28 Jul 2024 16:07:46 +0000 (12:07 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Dec 2024 12:52:51 +0000 (13:52 +0100)
commitf858b0fab28d8bc2d0f0e8cd4afc3216f347cfcc
tree869e72bcc9d8e5c2301261c7683fa0c2b869e729
parent9906dbe6001f5f56c12c67ef75432385c19a9341
PCI: Use preserve_config in place of pci_flags

[ Upstream commit 7246a4520b4bf1494d7d030166a11b5226f6d508 ]

Use preserve_config in place of checking for PCI_PROBE_ONLY flag to enable
support for "linux,pci-probe-only" on a per host bridge basis.

This also obviates the use of adding PCI_REASSIGN_ALL_BUS flag if
!PCI_PROBE_ONLY, as pci_assign_unassigned_root_bus_resources() takes care
of reassigning the resources that are not already claimed.

Link: https://lore.kernel.org/r/20240508174138.3630283-5-vidyas@nvidia.com
Signed-off-by: Vidya Sagar <vidyas@nvidia.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/pci/controller/pci-host-common.c
drivers/pci/probe.c