]> 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:09:36 +0000 (12:09 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jan 2025 12:24:50 +0000 (13:24 +0100)
commit0dde3ae52a0dcc5cdfe2185ec58ec52b43fda22e
tree57c9550051e70448b5203b8ca67d72f9fbd1a73b
parent6c7731ad179a738c0f73894fd382994b7d1c9407
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