diff mbox series

[v2,22/39] x86: Allow devices to write ACPI tables

Message ID 20200308214442.v2.22.I6f54ae1deb9a3f954441d072e5d591d7cdb4ed5d@changeid
State Superseded
Headers show
Series dm: Add programmatic generation of ACPI tables (part A) | expand

Commit Message

Simon Glass March 9, 2020, 3:44 a.m. UTC
Call the new core function to permit devices to write their own ACPI
tables. These tables will appear after all other tables.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

Changes in v2: None

 arch/x86/lib/acpi_table.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Wolfgang Wallner March 11, 2020, 11:37 a.m. UTC | #1
-----"Simon Glass" <sjg at chromium.org> schrieb: -----
> 
> Call the new core function to permit devices to write their own ACPI
> tables. These tables will appear after all other tables.
> 
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
> 
> Changes in v2: None
> 
>  arch/x86/lib/acpi_table.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/arch/x86/lib/acpi_table.c b/arch/x86/lib/acpi_table.c
> index 8e13d6a3e6..964f10a7cb 100644
> --- a/arch/x86/lib/acpi_table.c
> +++ b/arch/x86/lib/acpi_table.c
> @@ -580,6 +580,8 @@ ulong write_acpi_tables(ulong start_addr)
>  	acpi_inc_align(ctx, spcr->header.length);
>  	acpi_add_table(rsdp, spcr);
>  
> +	acpi_write_dev_tables(ctx);
> +
>  	addr = map_to_sysmem(ctx->current);
>  	debug("current = %lx\n", addr);
>  
> -- 
> 2.25.1.481.gfbce0eb801-goog

Reviewed-by: Wolfgang Wallner <wolfgang.wallner at br-automation.com>
diff mbox series

Patch

diff --git a/arch/x86/lib/acpi_table.c b/arch/x86/lib/acpi_table.c
index 8e13d6a3e6..964f10a7cb 100644
--- a/arch/x86/lib/acpi_table.c
+++ b/arch/x86/lib/acpi_table.c
@@ -580,6 +580,8 @@  ulong write_acpi_tables(ulong start_addr)
 	acpi_inc_align(ctx, spcr->header.length);
 	acpi_add_table(rsdp, spcr);
 
+	acpi_write_dev_tables(ctx);
+
 	addr = map_to_sysmem(ctx->current);
 	debug("current = %lx\n", addr);