mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2025-08-24 15:31:22 +01:00
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:
@@ -330,7 +330,7 @@ skip_suspend_states:
|
|||||||
|
|
||||||
/* Register HSM fixup callback */
|
/* Register HSM fixup callback */
|
||||||
rc = fdt_register_general_fixup(&rpmi_hsm_fixup);
|
rc = fdt_register_general_fixup(&rpmi_hsm_fixup);
|
||||||
if (rc)
|
if (rc && rc != SBI_EALREADY)
|
||||||
goto fail_free_susp_state_names;
|
goto fail_free_susp_state_names;
|
||||||
|
|
||||||
/* Register HSM device */
|
/* Register HSM device */
|
||||||
|
Reference in New Issue
Block a user