]> git.baikalelectronics.ru Git - kernel.git/commit
ARM64: PCI: Implement AML accessors for PCI_Config region
authorTomasz Nowicki <tn@semihalf.com>
Fri, 10 Jun 2016 19:55:18 +0000 (21:55 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 10 Jun 2016 23:36:19 +0000 (18:36 -0500)
commitea8ac1ffad44d2775ab520c3fca645d70ec0ff62
treeb5e5fe0b58be15d592f533e8c3348edc67c52e00
parent7618a5080e53f8b8ce686d9b1ff6bc594b977d26
ARM64: PCI: Implement AML accessors for PCI_Config region

On ACPI systems, the PCI_Config OperationRegion allows AML to access PCI
configuration space.  The ACPI CA AML interpreter uses performs config
space accesses with acpi_os_read_pci_configuration() and
acpi_os_write_pci_configuration(), which are OS-dependent functions
supplied by acpi/osl.c.

Implement the arch-specific raw_pci_read() and raw_pci_write() interfaces
used by acpi/osl.c for PCI_Config accesses.

N.B. PCI_Config accesses are not supported before PCI bus enumeration.

[bhelgaas: changelog]
Signed-off-by: Tomasz Nowicki <tn@semihalf.com>
Signed-off-by: Jayachandran C <jchandra@broadcom.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
arch/arm64/kernel/pci.c