]> www.infradead.org Git - users/jedix/linux-maple.git/commit
PCI: of: Add of_pci_preserve_config() for per-host bridge support
authorVidya Sagar <vidyas@nvidia.com>
Wed, 8 May 2024 17:41:36 +0000 (23:11 +0530)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 3 Jun 2024 21:17:36 +0000 (16:17 -0500)
commit407abde9caee0d8f757fc8bed43fa5efc6fe509a
tree150850c61b3b61994e06e4c4f0e203316a64c984
parent9d7d5db8e78ef1b67690bbffa5af60016d8e279d
PCI: of: Add of_pci_preserve_config() for per-host bridge support

Add of_pci_preserve_config() to look for the "linux,pci-probe-only"
property under a specified node.  If it's not found there, look under
"of_chosen" in addition.

If the caller didn't specify a node, look under "of_chosen".

With a future patch, this will support "linux,pci-probe-only" on a per host
bridge basis based on the presence of the property in the respective PCI
host bridge DT node.

Implement of_pci_check_probe_only() using of_pci_preserve_config().

Link: https://lore.kernel.org/r/20240508174138.3630283-3-vidyas@nvidia.com
Signed-off-by: Vidya Sagar <vidyas@nvidia.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/of.c
drivers/pci/pci.h