[PATCH] firmware: stratix10-svc: remove RSU command exclusion from no-support callback
From: Adrian Ng Ho Yin
Date: Mon May 11 2026 - 02:30:57 EST
Remove the compatibility workaround for older firmware that excluded
COMMAND_RSU_UPDATE and COMMAND_RSU_STATUS from the no-support callback.
This exclusion caused receive_cb to never be invoked for these commands
when firmware returned an unsupported response, leaving callers waiting
indefinitely.
Always invoke receive_cb with SVC_STATUS_NO_SUPPORT when the secure
firmware does not recognise a command, regardless of command type.
Signed-off-by: Adrian Ng Ho Yin <adrian.ho.yin.ng@xxxxxxxxxx>
---
drivers/firmware/stratix10-svc.c | 19 +++++--------------
1 file changed, 5 insertions(+), 14 deletions(-)
diff --git a/drivers/firmware/stratix10-svc.c b/drivers/firmware/stratix10-svc.c
index 39eb78f5905b..199e5673677f 100644
--- a/drivers/firmware/stratix10-svc.c
+++ b/drivers/firmware/stratix10-svc.c
@@ -803,20 +803,11 @@ static int svc_normal_to_secure_thread(void *data)
default:
pr_warn("Secure firmware doesn't support...\n");
- /*
- * be compatible with older version firmware which
- * doesn't support newer RSU commands
- */
- if ((pdata->command != COMMAND_RSU_UPDATE) &&
- (pdata->command != COMMAND_RSU_STATUS)) {
- cbdata->status =
- BIT(SVC_STATUS_NO_SUPPORT);
- cbdata->kaddr1 = NULL;
- cbdata->kaddr2 = NULL;
- cbdata->kaddr3 = NULL;
- pdata->chan->scl->receive_cb(
- pdata->chan->scl, cbdata);
- }
+ cbdata->status = BIT(SVC_STATUS_NO_SUPPORT);
+ cbdata->kaddr1 = NULL;
+ cbdata->kaddr2 = NULL;
+ cbdata->kaddr3 = NULL;
+ pdata->chan->scl->receive_cb(pdata->chan->scl, cbdata);
break;
}
--
2.49.GIT