summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2016-12-30 06:27:27 -0800
committerGerrit - the friendly Code Review server <code-review@localhost>2016-12-30 06:27:26 -0800
commit1fd3851fcdf40536bf310a2b6c63f3957eb575c0 (patch)
tree1888bb53e635cc56c880bbd6347cb38eaf46c129
parent11d76c0a2ea180a84a25ccd353801cb799615344 (diff)
parent812ba4c42a079b540930a9124e457ea2eeec1028 (diff)
Merge "msm: mink: Send full buffer size to TZ for smcinvoke"
-rw-r--r--drivers/soc/qcom/smcinvoke.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/soc/qcom/smcinvoke.c b/drivers/soc/qcom/smcinvoke.c
index e920dfee8530..d0fef9d31755 100644
--- a/drivers/soc/qcom/smcinvoke.c
+++ b/drivers/soc/qcom/smcinvoke.c
@@ -192,9 +192,9 @@ static int prepare_send_scm_msg(const uint8_t *in_buf, size_t in_buf_len,
desc.arginfo = SMCINVOKE_TZ_PARAM_ID;
desc.args[0] = (uint64_t)virt_to_phys(in_buf);
- desc.args[1] = in_buf_len;
+ desc.args[1] = inbuf_flush_size;
desc.args[2] = (uint64_t)virt_to_phys(out_buf);
- desc.args[3] = out_buf_len;
+ desc.args[3] = outbuf_flush_size;
dmac_flush_range(in_buf, in_buf + inbuf_flush_size);
dmac_flush_range(out_buf, out_buf + outbuf_flush_size);