[PATCH 1/4] acpi: add index parameter to acpi_find_table

Simon Glass sjg at chromium.org
Wed Apr 22 00:48:46 CEST 2026


Hi Heinrich,

On 2026-04-20T22:08:00, Heinrich Schuchardt
<heinrich.schuchardt at canonical.com> wrote:
> acpi: add index parameter to acpi_find_table
>
> ACPI tables like SSDT may have multiple indexs.

indices

>
> Add an index parameter to acpi_find_table() to allow finding the n-th
> instance of an ACPI table with the same signature.
>
> Update all callers to pass index 1.
>
> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
>
> cmd/acpi.c                       |  2 +-
>  drivers/serial/serial_coreboot.c |  2 +-
>  include/acpi/acpi_table.h        |  3 ++-
>  lib/acpi/acpi.c                  | 21 ++++++++++++++++-----
>  test/dm/acpi.c                   | 18 +++++++++---------
>  5 files changed, 29 insertions(+), 17 deletions(-)

> diff --git a/cmd/acpi.c b/cmd/acpi.c
> @@ -55,7 +55,7 @@ static int dump_table_name(const char *sig)
> -     hdr = acpi_find_table(sig);
> +     hdr = acpi_find_table(sig, 0);

Commit message says "pass index 1" but code passes 0. Did you decide
to go with 0 in the end?

Regards,
Simon


More information about the U-Boot mailing list