Skip to content

Commit 1e69224

Browse files
Vidya Sagarbjorn-helgaas
authored andcommitted
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>
1 parent 407abde commit 1e69224

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

drivers/pci/probe.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -894,6 +894,9 @@ static bool pci_preserve_config(struct pci_host_bridge *host_bridge)
894894
if (pci_acpi_preserve_config(host_bridge))
895895
return true;
896896

897+
if (host_bridge->dev.parent && host_bridge->dev.parent->of_node)
898+
return of_pci_preserve_config(host_bridge->dev.parent->of_node);
899+
897900
return false;
898901
}
899902

0 commit comments

Comments
 (0)