Skip to contentSkip to conversation

riscv: acpi: chose to boot from acpi then disable FDT

PATCH Applied Han Gao 2 participants 2 messages Sep 10, 2025 – Oct 10, 2025 RISC-V

lore
Share & tools
lore

Han Gao

author
#0 lore raw

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")

---
 arch/riscv/kernel/setup.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
arch/riscv/kernel/setup.c +5 -2
index f90cce7a3ace..d7ee62837aa4 100644
@@ -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
#1 lore raw
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")

---
 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