Skip to content

Commit 3f8159a

Browse files
Ziang95avpatel
authored andcommitted
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 <[email protected]> Signed-off-by: Ziang Wang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Anup Patel <[email protected]>
1 parent 27347f0 commit 3f8159a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/utils/hsm/fdt_hsm_rpmi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ static int rpmi_hsm_cold_init(const void *fdt, int nodeoff,
330330

331331
/* Register HSM fixup callback */
332332
rc = fdt_register_general_fixup(&rpmi_hsm_fixup);
333-
if (rc)
333+
if (rc && rc != SBI_EALREADY)
334334
goto fail_free_susp_state_names;
335335

336336
/* Register HSM device */

0 commit comments

Comments
 (0)