]> git.ipfire.org Git - thirdparty/linux.git/commit
MIPS: Loongson2ef: Register PCI controller in early stage
authorRong Zhang <rongrong@oss.cipunited.com>
Sat, 31 Jan 2026 21:32:58 +0000 (05:32 +0800)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Thu, 5 Feb 2026 09:00:37 +0000 (10:00 +0100)
commit6a00c043af07492502ba7a2263ddc4cdb01b66a7
tree767e3cbb3a56b5364dc0a81769a2a43884dd8117
parenta6ab150deb4b740334721d18e02ad400a9d888f5
MIPS: Loongson2ef: Register PCI controller in early stage

We are about to set loongson_pci_io_resource.start to 0 and adopt
PCIBIOS_MIN_IO. As the first step, PCI controller needs to be registered
in early stage to make it the root of other resources (e.g., i8259) and
prevent resource conflicts.

Register it in plat_mem_setup() instead of arch_initcall().

Fixes: ae81aad5c2e1 ("MIPS: PCI: Use pci_enable_resources()")
Cc: stable@vger.kernel.org
Tested-by: Beiyan Yun <root@infi.wang>
Tested-by: Yao Zi <me@ziyao.cc>
Signed-off-by: Rong Zhang <rongrong@oss.cipunited.com>
Acked-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/include/asm/mach-loongson2ef/loongson.h
arch/mips/loongson2ef/common/pci.c
arch/mips/loongson2ef/common/setup.c