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/[email protected] Signed-off-by: Vidya Sagar <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]>
1 parent 407abde commit 1e69224

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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)