]> www.infradead.org Git - users/dwmw2/linux.git/commit
PCI: Use preserve_config in place of pci_flags
authorVidya Sagar <vidyas@nvidia.com>
Wed, 8 May 2024 17:41:38 +0000 (23:11 +0530)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 3 Jun 2024 21:18:13 +0000 (16:18 -0500)
commit7246a4520b4bf1494d7d030166a11b5226f6d508
tree3d1946cb51710ea55ab68fb87976f25ecfb7a762
parent1e6922482cd429e568537f8f6cf159765b5d176f
PCI: Use preserve_config in place of pci_flags

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>
drivers/pci/controller/pci-host-common.c
drivers/pci/probe.c