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>
This commit is contained in:
Ziang Wang
2025-05-07 15:46:20 +08:00
committed by Anup Patel
parent 27347f0902
commit 3f8159aa06

View File

@@ -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 */