security: pfe: Use non blocking scm call

Use non-retrying version of scm calls to
configure ICE keys. This ensures that control is
returned to upper layer as quickly as possible.

Change-Id: Idbecd9301d2f361c17a720c4ac0dcdc393985676
Signed-off-by: Neeraj Soni <neersoni@codeaurora.org>
This commit is contained in:
Neeraj Soni 2018-04-02 19:00:31 +05:30 committed by Gerrit - the friendly Code Review server
parent 4c31454044
commit 104d99ba6d

View File

@ -98,7 +98,7 @@ static int set_key(uint32_t index, const uint8_t *key, const uint8_t *salt,
desc.args[3] = ICE_CIPHER_MODE_XTS_256; desc.args[3] = ICE_CIPHER_MODE_XTS_256;
desc.args[4] = data_unit; desc.args[4] = data_unit;
ret = scm_call2(smc_id, &desc); ret = scm_call2_noretry(smc_id, &desc);
if (ret) if (ret)
pr_err("%s:SCM call Error: 0x%x\n", __func__, ret); pr_err("%s:SCM call Error: 0x%x\n", __func__, ret);
@ -116,7 +116,7 @@ static int clear_key(uint32_t index)
desc.arginfo = TZ_ES_INVALIDATE_ICE_KEY_PARAM_ID; desc.arginfo = TZ_ES_INVALIDATE_ICE_KEY_PARAM_ID;
desc.args[0] = index; desc.args[0] = index;
ret = scm_call2(smc_id, &desc); ret = scm_call2_noretry(smc_id, &desc);
if (ret) if (ret)
pr_err("%s:SCM call Error: 0x%x\n", __func__, ret); pr_err("%s:SCM call Error: 0x%x\n", __func__, ret);
return ret; return ret;