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

Pawandeep Oza pawandeep.oza at oss.qualcomm.com
Wed Nov 18 13:55:48 PST 2026


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>
---
 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




More information about the opensbi mailing list