From 812ba4c42a079b540930a9124e457ea2eeec1028 Mon Sep 17 00:00:00 2001 From: Dinesh K Garg Date: Thu, 22 Dec 2016 11:54:33 -0800 Subject: [PATCH] msm: mink: Send full buffer size to TZ for smcinvoke Currently, smcinvoke driver sends actual content size instead of size of actual buffer. As per new requirement, TZ needs full buffer size. Change-Id: I9e051d8825ff753f801155d1ea941034fa5e1e12 Signed-off-by: Dinesh K Garg --- drivers/soc/qcom/smcinvoke.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/soc/qcom/smcinvoke.c b/drivers/soc/qcom/smcinvoke.c index d4be8c641ad8..ff0b029fcb7c 100644 --- a/drivers/soc/qcom/smcinvoke.c +++ b/drivers/soc/qcom/smcinvoke.c @@ -190,9 +190,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);