]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
riscv: mm: Return intended SATP mode for noXlvl options
authorJunhui Liu <junhui.liu@pigmoral.tech>
Mon, 21 Jul 2025 16:53:10 +0000 (00:53 +0800)
committerPaul Walmsley <pjw@kernel.org>
Wed, 17 Sep 2025 23:00:59 +0000 (17:00 -0600)
commitf3243bed39c26ce0f13e6392a634f91d409b2d02
tree62e3e9435d482f9f49fc19ae124c639087dc756e
parent4d4a3cc7f280b2751a6967b25c6d8c1e2740cafd
riscv: mm: Return intended SATP mode for noXlvl options

Change the return value of match_noXlvl() to return the SATP mode that
will be used, rather than the mode being disabled. This enables unified
logic for return value judgement with the function that obtains mmu-type
from the fdt, avoiding extra conversion. This only changes the naming,
with no functional impact.

Signed-off-by: Junhui Liu <junhui.liu@pigmoral.tech>
Reviewed-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Reviewed-by: Nutty Liu <liujingqi@lanxincomputing.com>
Link: https://lore.kernel.org/r/20250722-satp-from-fdt-v1-1-5ba22218fa5f@pigmoral.tech
Signed-off-by: Paul Walmsley <pjw@kernel.org>
arch/riscv/kernel/pi/cmdline_early.c
arch/riscv/mm/init.c