[PATCH v10 7/7] lib: sbi: mpxy: Register extension unconditionally

Anup Patel anup at brainfault.org
Thu Nov 19 04:40:23 PST 2026


On Thu, Nov 19, 2026 at 3:25 AM Pawandeep Oza
<pawandeep.oza at oss.qualcomm.com> wrote:
>
> From: Oza Pawandeep <pawandeep.oza at oss.qualcomm.com>
>
> Register the MPXY ecall extension unconditionally, as this is too early
> in the init order and any channel might not have been registered yet.
>
> Reviewed-by: Rahul Pathak <rahul.pathak at oss.qualcomm.com>
> Signed-off-by: Oza Pawandeep <pawandeep.oza at oss.qualcomm.com>

LGTM.

Reviewed-by: Anup Patel <anup at brainfault.org>

> ---
>  lib/sbi/sbi_ecall_mpxy.c | 7 ++++---
>  1 file changed, 4 insertions(+), 3 deletions(-)
>
> diff --git a/lib/sbi/sbi_ecall_mpxy.c b/lib/sbi/sbi_ecall_mpxy.c
> index 0a5e3525..bd55640b 100644
> --- a/lib/sbi/sbi_ecall_mpxy.c
> +++ b/lib/sbi/sbi_ecall_mpxy.c
> @@ -57,9 +57,10 @@ struct sbi_ecall_extension ecall_mpxy;
>
>  static int sbi_ecall_mpxy_register_extensions(void)
>  {
> -       if (!sbi_mpxy_channel_available())
> -               return 0;
> -
> +       /*
> +        * Register the MPXY ecall extension unconditionally, as this is too early
> +        * in the init order and any channel might not have been registered yet.
> +        */
>         return sbi_ecall_register_extension(&ecall_mpxy);
>  }
>
> --
> 2.43.0
>

Thanks,
Anup



More information about the opensbi mailing list