diff options
| author | Ziang Wang <[email protected]> | 2025-05-07 15:46:20 +0800 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2025-06-14 10:31:32 +0530 |
| commit | 3f8159aa068e6b2447abcf2df00b913b7f852456 (patch) | |
| tree | 942c4ba85c692f34077efb94ce2f258f1040d86c /lib | |
| parent | 27347f0902cdf69b20786726e3827df6df089b2a (diff) | |
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]>
Diffstat (limited to 'lib')
| -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 cc78436f..09d0c91d 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 */ |
