PCI/ACPI: Extend pci_mcfg_lookup() to return ECAM config accessors
authorTomasz Nowicki <tn@semihalf.com>
Fri, 9 Sep 2016 19:24:03 +0000 (21:24 +0200)
committerBjorn Helgaas <helgaas@kernel.org>
Tue, 6 Dec 2016 19:45:48 +0000 (13:45 -0600)
commit13983eb89d5afaa65acd4479fad151cbd4de5509
treea131313e953e8b073ba44ff33a69994d11b0abdd
parent8fd4391ee717569d60fa283da778f7497630c9b7
PCI/ACPI: Extend pci_mcfg_lookup() to return ECAM config accessors

pci_mcfg_lookup() is the external interface to the generic MCFG code.
Previously it merely looked up the ECAM base address for a given domain and
bus range.  We want a way to add MCFG quirks, some of which may require
special config accessors and adjustments to the ECAM address range.

Extend pci_mcfg_lookup() so it can return a pointer to a pci_ecam_ops
structure and a struct resource for the ECAM address space.  For now, it
always returns &pci_generic_ecam_ops (the standard accessor) and the
resource described by the MCFG.

No functional changes intended.

[bhelgaas: changelog]
Signed-off-by: Tomasz Nowicki <tn@semihalf.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
arch/arm64/kernel/pci.c
drivers/acpi/pci_mcfg.c
include/linux/pci-acpi.h