[PATCH v7-incomplete 3/3] PCI: Unify ACPI and DT 'preserve config' support
From: Bjorn Helgaas
Date: Sun Apr 21 2024 - 15:10:38 EST
From: Bjorn Helgaas <bhelgaas@xxxxxxxxxx>
---
drivers/pci/probe.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c
index ee086d029450..2c232c22d6af 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;
}
--
2.34.1