diff options
author | Ang Tien Sung <[email protected]> | 2022-02-23 08:41:46 -0600 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2022-03-18 14:12:52 +0100 |
commit | b850b7a8b369322adf699ef48ceff4d902525c8c (patch) | |
tree | c03447316a43f9d06c1570ea1d6a595bdd667a38 | |
parent | 8c8ce95b6f1bc34320ac7549b6040a19655dd7e6 (diff) |
firmware: stratix10-svc: add missing callback parameter on RSU
Fix a bug whereby, the return response of parameter a1 from an
SMC call is not properly set to the callback data during an
INTEL_SIP_SMC_RSU_ERROR command.
Link: https://lore.kernel.org/lkml/[email protected]
Fixes: 6b50d882d38d ("firmware: add remote status update client support")
Cc: [email protected]
Signed-off-by: Ang Tien Sung <[email protected]>
Signed-off-by: Dinh Nguyen <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
-rw-r--r-- | drivers/firmware/stratix10-svc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/firmware/stratix10-svc.c b/drivers/firmware/stratix10-svc.c index 4bd57a908efe..8177a0fae11d 100644 --- a/drivers/firmware/stratix10-svc.c +++ b/drivers/firmware/stratix10-svc.c @@ -483,7 +483,7 @@ static int svc_normal_to_secure_thread(void *data) case INTEL_SIP_SMC_RSU_ERROR: pr_err("%s: STATUS_ERROR\n", __func__); cbdata->status = BIT(SVC_STATUS_ERROR); - cbdata->kaddr1 = NULL; + cbdata->kaddr1 = &res.a1; cbdata->kaddr2 = NULL; cbdata->kaddr3 = NULL; pdata->chan->scl->receive_cb(pdata->chan->scl, cbdata); |