smcinvoke: Update the correct parameters and result from qseecom
This change takes care of two things:
1.smcinvoke expects result in scm call resp.ret[1] and type in ret[0],
while qseecom expects result in ret[0] and type in ret[1]. To simplify
API interface and code changes in smcinvoke, here internally switch
result and resp_type.
2.In case when a listener request comes from secure side to smcinvoke,
we invoke qseecom for processing of listener request. It maybe the case
that after this request, secure side may request for another callback
request. In this flow, we need to update the correct result from qseecom
as 0 so as to indicate that qseecom's job was successfully finished and now
smcinvoke has to take care of the callback request further. This condition
is again checked at smcinvoke side and decision to marshal out is taken
accordingly.
Change-Id: I5d6be3292ef11ac2d84fd287bb8f1e9f91dc1b56
Signed-off-by:
Anmolpreet Kaur <anmolpre@codeaurora.org>
Loading
Please register or sign in to comment