[PATCH v3 3/4] platform: generic: Parse system suspend test from config node.

Anup Patel anup at brainfault.org
Tue Feb 20 02:43:52 PST 2024


On Thu, Feb 8, 2024 at 8:50 AM Cheng Yang <yangcheng.work at foxmail.com> wrote:
>
> This patch update generic_domains_init() so that "system-suspend-test"
> is parsed from "/chosen/opensbi-config" DT node.
>
> Signed-off-by: Cheng Yang <yangcheng.work at foxmail.com>

LGTM.

Reviewed-by: Anup Patel <anup at brainfault.org>

Applied this patch to the riscv/opensbi repo.

Thanks,
Anup

> ---
>  platform/generic/platform.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/platform/generic/platform.c b/platform/generic/platform.c
> index 5f76193..407d5b1 100644
> --- a/platform/generic/platform.c
> +++ b/platform/generic/platform.c
> @@ -316,7 +316,7 @@ static int generic_domains_init(void)
>
>         if (offset >= 0) {
>                 offset = fdt_node_offset_by_compatible(fdt, offset,
> -                                                      "opensbi,domain,config");
> +                                                      "opensbi,config");
>                 if (offset >= 0 &&
>                     fdt_get_property(fdt, offset, "system-suspend-test", NULL))
>                         sbi_system_suspend_test_enable();
> --
> 2.34.1
>



More information about the opensbi mailing list