]> www.infradead.org Git - users/jedix/linux-maple.git/commit
PCI: Move PRESERVE_BOOT_CONFIG _DSM evaluation to pci_register_host_bridge()
authorVidya Sagar <vidyas@nvidia.com>
Wed, 8 May 2024 17:41:35 +0000 (23:11 +0530)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 3 Jun 2024 21:13:38 +0000 (16:13 -0500)
commit9d7d5db8e78ef1b67690bbffa5af60016d8e279d
treef91265594f4d6f64f84b7c190aae0c76043f8909
parent1613e604df0cd359cf2a7fbd9be7a0bcfacfabd0
PCI: Move PRESERVE_BOOT_CONFIG _DSM evaluation to pci_register_host_bridge()

Move the PRESERVE_BOOT_CONFIG _DSM evaluation from acpi_pci_root_create()
to pci_register_host_bridge().

This will help unify the ACPI _DSM path and the DT-based
"linux,pci-probe-only" paths.

This should be safe because it happens earlier than it used to:

    acpi_pci_root_create
      pci_create_root_bus
        pci_register_host_bridge
  +       bridge->preserve_config = pci_preserve_config(bridge)
            pci_acpi_preserve_config
  +           acpi_evaluate_dsm_typed(DSM_PCI_PRESERVE_BOOT_CONFIG)
  -   acpi_evaluate_dsm_typed(DSM_PCI_PRESERVE_BOOT_CONFIG)

No functional change intended.

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