]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
LoongArch: Disable FIX_EARLYCON_MEM when ARCH_IOREMAP is enabled
authorJiaxun Yang <jiaxun.yang@flygoat.com>
Sat, 25 Jan 2025 10:51:33 +0000 (18:51 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Sat, 25 Jan 2025 10:51:33 +0000 (18:51 +0800)
When ARCH_IOREMAP is enabled, we are using always accessible DMW for
ioremap(). It makes no sense to create a dedicated mapping for earlycon
given that we can access the region via DMW.

Disable FIX_EARLYCON_MEM when ARCH_IOREMAP is selected. This can ease
debugging for early mapping issues.

Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/Kconfig

index 98e099be912db973a336bf90832ad4f392cc847c..677cd45de70a9b1c0da16c0e1bb6d5a6ec0c560a 100644 (file)
@@ -245,7 +245,7 @@ config MACH_LOONGSON64
        def_bool 64BIT
 
 config FIX_EARLYCON_MEM
-       def_bool y
+       def_bool !ARCH_IOREMAP
 
 config PGTABLE_2LEVEL
        bool