diff options
author | Vidya Sagar <vidyas@nvidia.com> | 2024-05-08 20:41:37 +0300 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2024-06-04 00:17:49 +0300 |
commit | 1e6922482cd429e568537f8f6cf159765b5d176f (patch) | |
tree | 81ebd4874c3d3123e36701a7d6adafa2d342f2dc /drivers/pci | |
parent | 407abde9caee0d8f757fc8bed43fa5efc6fe509a (diff) | |
download | linux-1e6922482cd429e568537f8f6cf159765b5d176f.tar.xz |
PCI: Unify ACPI and DT 'preserve config' support
Unify the 'preserve config' support across ACPI and device-tree
boot flows.
Link: https://lore.kernel.org/r/20240508174138.3630283-4-vidyas@nvidia.com
Signed-off-by: Vidya Sagar <vidyas@nvidia.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci')
-rw-r--r-- | drivers/pci/probe.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c index fd6525277061..8786d2c1a0bd 100644 --- a/drivers/pci/probe.c +++ b/drivers/pci/probe.c @@ -894,6 +894,9 @@ static bool pci_preserve_config(struct pci_host_bridge *host_bridge) if (pci_acpi_preserve_config(host_bridge)) return true; + if (host_bridge->dev.parent && host_bridge->dev.parent->of_node) + return of_pci_preserve_config(host_bridge->dev.parent->of_node); + return false; } |