diff options
author | Ziang Wang <wangziang.ok@bytedance.com> | 2025-05-07 15:46:20 +0800 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2025-06-14 10:31:32 +0530 |
commit | 3f8159aa068e6b2447abcf2df00b913b7f852456 (patch) | |
tree | 942c4ba85c692f34077efb94ce2f258f1040d86c | |
parent | 27347f0902cdf69b20786726e3827df6df089b2a (diff) | |
download | opensbi-3f8159aa068e6b2447abcf2df00b913b7f852456.zip opensbi-3f8159aa068e6b2447abcf2df00b913b7f852456.tar.gz opensbi-3f8159aa068e6b2447abcf2df00b913b7f852456.tar.bz2 |
lib: utils: hsm: Do not fail on EALREADY in rpmi-hsm fixup.
In case harts are divided into groups that use different
rpmi-hsm channels in different mailboxes, the suspend
state fixup function will return EALREADY on secondary
entry, simply skip on this error.
Reviewed-by: Anup Patel <anup@brainfault.org>
Signed-off-by: Ziang Wang <wangziang.ok@bytedance.com>
Link: https://lore.kernel.org/r/20250507074620.3162747-1-wangziang.ok@bytedance.com
Signed-off-by: Anup Patel <anup@brainfault.org>
-rw-r--r-- | lib/utils/hsm/fdt_hsm_rpmi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/utils/hsm/fdt_hsm_rpmi.c b/lib/utils/hsm/fdt_hsm_rpmi.c index cc78436..09d0c91 100644 --- a/lib/utils/hsm/fdt_hsm_rpmi.c +++ b/lib/utils/hsm/fdt_hsm_rpmi.c @@ -330,7 +330,7 @@ skip_suspend_states: /* Register HSM fixup callback */ rc = fdt_register_general_fixup(&rpmi_hsm_fixup); - if (rc) + if (rc && rc != SBI_EALREADY) goto fail_free_susp_state_names; /* Register HSM device */ |