riscv: acpi: chose to boot from acpi then disable FDT
PATCH 1/1 riscv: acpi: chose to boot from acpi then disable FDT
avoid errors caused by repeated driver initialization.
commit 3505f30fb6a9 ("ARM64 / ACPI: If we chose to boot from acpi then disable FDT")
Signed-off-by Han Gao <[email protected]>
--- arch/riscv/kernel/setup.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
arch/riscv/kernel/setup.c +5 -2
@@ -330,11 +330,14 @@ void __init setup_arch(char **cmdline_p)/* Parse the ACPI tables for possible boot-time configuration */ acpi_boot_table_init (); +if (acpi_disabled) {#if IS_ENABLED (CONFIG_BUILTIN_DTB ) -unflatten_and_copy_device_tree (); +unflatten_and_copy_device_tree ();#else -unflatten_device_tree (); +unflatten_device_tree ();#endif + } +misc_mem_init ();init_resources ();
Signature · 1 line
2.47.3
This patch was applied to riscv/linux.git (fixes) by Paul Walmsley <[email protected]>:
Hello:
This patch was applied to riscv/linux.git (fixes)
by Paul Walmsley <[email protected]>:
Quoted 8 lines · On Wed, 10 Sep 2025 19:24:01 +0800 you wrote:
avoid errors caused by repeated driver initialization.
commit
3505f30fb6a9("ARM64 / ACPI: If we chose to boot from acpi then disable FDT")Signed-off-by Han Gao <[email protected]>--- arch/riscv/kernel/setup.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
Here is the summary with links:
- riscv: acpi: chose to boot from acpi then disable FDT
https://git.kernel.org/riscv/c/69a8b62a7aa1
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html