]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: PCI: Support for CONFIG_PCI_DOMAINS_GENERIC
authorPaul Burton <paul.burton@imgtec.com>
Wed, 5 Oct 2016 17:18:08 +0000 (18:18 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 6 Oct 2016 15:57:23 +0000 (17:57 +0200)
commit9e77f3b52c4ca77a81f60d014e595cf7012237c2
treec7e0e62e57e7d4e013f1f38cf408654c1ee6faa7
parentb6b1af1dd634d47287d495958e90c248dd1a4218
MIPS: PCI: Support for CONFIG_PCI_DOMAINS_GENERIC

Introduce support for CONFIG_PCI_DOMAINS_GENERIC, allowing for platforms
to make use of generic PCI domains instead of the MIPS-specific
implementation. The set_pci_need_domain_info function is introduced to
abstract away the removed need_domain_info field in struct
pci_controller, and pcibios_scanbus is adjusted to use the pci_domain_nr
accessor instead of directly accessing the index field.

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