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 <dineshg@codeaurora.org>
This commit is contained in:
Dinesh K Garg 2016-12-22 11:54:33 -08:00
parent e379f786aa
commit 812ba4c42a

View file

@ -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);