]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: PCI: Introduce CONFIG_PCI_DRIVERS_LEGACY
authorPaul Burton <paul.burton@imgtec.com>
Wed, 5 Oct 2016 17:18:12 +0000 (18:18 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 6 Oct 2016 16:00:05 +0000 (18:00 +0200)
commitc4ce95146db6b3eaa1702ee00249f018c6f16a86
tree0f69ce4163194a0152e2673e3c71c47eabfffa0b
parent97c18684084fdab7e6f9c77978d06cf7790489b9
MIPS: PCI: Introduce CONFIG_PCI_DRIVERS_LEGACY

Introduce 2 Kconfig symbols, CONFIG_PCI_DRIVERS_GENERIC &
CONFIG_PCI_DRIVERS_LEGACY, which indicate whether the system should be
built to for PCI drivers using the MIPS-specific struct pci_controller
API (hereafter "legacy" drivers) or more generic drivers using only
functionality provided by the PCI core (hereafter "generic" drivers).

The Kconfig entries are created such that platforms have to select
CONFIG_PCI_DRIVERS_GENERIC if they wish to use it - that is, the default
is CONFIG_PCI_DRIVERS_LEGACY so that existing platforms need no
modification.

The functions declared in pci.h are rearranged with those provided only
by pci-legacy.c being guarded by an #ifdef CONFIG_PCI_DRIVERS_LEGACY to
ensure they are only used in configurations where they are implemented.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/14345/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/Kconfig
arch/mips/include/asm/pci.h
arch/mips/lib/iomap-pci.c
arch/mips/pci/Makefile