diff options
author | David Woodhouse <dwmw@amazon.co.uk> | 2018-02-19 13:02:33 +0000 |
---|---|---|
committer | Bjorn Helgaas <helgaas@kernel.org> | 2018-02-28 17:03:40 -0600 |
commit | 46e15a2a71e5c6252859e4ade38b7fdbb897a7a1 (patch) | |
tree | b8bbc6a136a58c619643e1baa2926a7bbd26539d /arch/xtensa/include | |
parent | 28f8f1833be700c95cf9cb198c788649db0b3b65 (diff) | |
download | op-kernel-dev-46e15a2a71e5c6252859e4ade38b7fdbb897a7a1.zip op-kernel-dev-46e15a2a71e5c6252859e4ade38b7fdbb897a7a1.tar.gz |
xtensa/PCI: Use generic pci_mmap_resource_range()
Commit f719582435 ("PCI: Add pci_mmap_resource_range() and use it for
ARM64") added this generic function with the intent of using it everywhere
and ultimately killing the old arch-specific implementations.
Remove the xtensa-specific pci_mmap_page_range() and use the generic
pci_mmap_resource_range() instead.
Xtensa can mmap I/O port space, so supply the xtensa-specific
pci_iobar_pfn() required to make that work.
Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
[bhelgaas: changelog]
Signed-off-by: Bjorn Helgaas <helgaas@kernel.org>
Acked-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'arch/xtensa/include')
-rw-r--r-- | arch/xtensa/include/asm/pci.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/xtensa/include/asm/pci.h b/arch/xtensa/include/asm/pci.h index 5c83798..d5a8215 100644 --- a/arch/xtensa/include/asm/pci.h +++ b/arch/xtensa/include/asm/pci.h @@ -44,9 +44,10 @@ extern struct pci_controller* pcibios_alloc_controller(void); #define PCI_DMA_BUS_IS_PHYS (1) -/* Tell drivers/pci/proc.c that we have pci_mmap_page_range() */ -#define HAVE_PCI_MMAP 1 -#define arch_can_pci_mmap_io() 1 +/* Tell PCI code what kind of PCI resource mappings we support */ +#define HAVE_PCI_MMAP 1 +#define ARCH_GENERIC_PCI_MMAP_RESOURCE 1 +#define arch_can_pci_mmap_io() 1 #endif /* __KERNEL__ */ |