diff options
author | Vidya Sagar <vidyas@nvidia.com> | 2024-05-08 19:41:38 +0200 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2024-06-03 23:18:13 +0200 |
commit | 7246a4520b4bf1494d7d030166a11b5226f6d508 (patch) | |
tree | 3d1946cb51710ea55ab68fb87976f25ecfb7a762 /drivers/pci/controller | |
parent | PCI: Unify ACPI and DT 'preserve config' support (diff) | |
download | linux-7246a4520b4bf1494d7d030166a11b5226f6d508.tar.xz linux-7246a4520b4bf1494d7d030166a11b5226f6d508.zip |
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>
Diffstat (limited to 'drivers/pci/controller')
-rw-r--r-- | drivers/pci/controller/pci-host-common.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/pci/controller/pci-host-common.c b/drivers/pci/controller/pci-host-common.c index 45b71806182d..c96b2de163b5 100644 --- a/drivers/pci/controller/pci-host-common.c +++ b/drivers/pci/controller/pci-host-common.c @@ -73,10 +73,6 @@ int pci_host_common_probe(struct platform_device *pdev) if (IS_ERR(cfg)) return PTR_ERR(cfg); - /* Do not reassign resources if probe only */ - if (!pci_has_flag(PCI_PROBE_ONLY)) - pci_add_flags(PCI_REASSIGN_ALL_BUS); - bridge->sysdata = cfg; bridge->ops = (struct pci_ops *)&ops->pci_ops; bridge->msi_domain = true; |