* [PATCH] riscv: acpi: chose to boot from acpi then disable FDT
@ 2025-09-10 11:24 Han Gao
2025-10-10 2:27 ` patchwork-bot+linux-riscv
0 siblings, 1 reply; 2+ messages in thread
From: Han Gao @ 2025-09-10 11:24 UTC (permalink / raw)
To: linux-riscv, Paul Walmsley, Palmer Dabbelt, Albert Ou,
Alexandre Ghiti, Andrew Morton, Mike Rapoport (Microsoft),
Andy Chiu, Han Gao, Guo Weikang, Kuan-Wei Chiu,
Björn Töpel, Zixian Zeng, Usama Arif, Yong-Xuan Wang
Cc: linux-kernel
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 <rabenda.cn@gmail.com>
---
arch/riscv/kernel/setup.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/arch/riscv/kernel/setup.c b/arch/riscv/kernel/setup.c
index f90cce7a3ace..d7ee62837aa4 100644
--- a/arch/riscv/kernel/setup.c
+++ b/arch/riscv/kernel/setup.c
@@ -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();
--
2.47.3
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] riscv: acpi: chose to boot from acpi then disable FDT
2025-09-10 11:24 [PATCH] riscv: acpi: chose to boot from acpi then disable FDT Han Gao
@ 2025-10-10 2:27 ` patchwork-bot+linux-riscv
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+linux-riscv @ 2025-10-10 2:27 UTC (permalink / raw)
To: Han Gao
Cc: linux-riscv, paul.walmsley, palmer, aou, alex, akpm, rppt,
andybnac, guoweikang.kernel, visitorckw, bjorn, sycamoremoon376,
usamaarif642, yongxuan.wang, linux-kernel
Hello:
This patch was applied to riscv/linux.git (fixes)
by Paul Walmsley <pjw@kernel.org>:
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 <rabenda.cn@gmail.com>
> ---
> 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!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-10-10 2:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-10 11:24 [PATCH] riscv: acpi: chose to boot from acpi then disable FDT Han Gao
2025-10-10 2:27 ` patchwork-bot+linux-riscv
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox