diff options
author | Vidya Sagar <[email protected]> | 2024-05-08 23:11:37 +0530 |
---|---|---|
committer | Bjorn Helgaas <[email protected]> | 2024-06-03 16:17:49 -0500 |
commit | 1e6922482cd429e568537f8f6cf159765b5d176f (patch) | |
tree | 81ebd4874c3d3123e36701a7d6adafa2d342f2dc | |
parent | 407abde9caee0d8f757fc8bed43fa5efc6fe509a (diff) |
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/[email protected]
Signed-off-by: Vidya Sagar <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
-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; } |