msm: mink: Separate out transport and client error
Currently, return value for SMCINVOKE_IOCTL_INVOKE_REQ IOCLT is mixed with error generated by client. This does not seem right because client does not understand kernel error code and vice versa. Change-Id: I77278700c4927facf7aba92a11bfde29b1e8eb38 Signed-off-by: Dinesh K Garg <dineshg@codeaurora.org>
This commit is contained in:
parent
054b950dfd
commit
e54946be6e
1 changed files with 3 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (c) 2016, The Linux Foundation. All rights reserved.
|
||||
/* Copyright (c) 2016-2017, The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 and
|
||||
|
@ -207,12 +207,11 @@ static int prepare_send_scm_msg(const uint8_t *in_buf, size_t in_buf_len,
|
|||
ret = qseecom_process_listener_from_smcinvoke(&desc);
|
||||
|
||||
*smcinvoke_result = (int32_t)desc.ret[1];
|
||||
if (ret || desc.ret[1] || desc.ret[2] || desc.ret[0]) {
|
||||
if (ret || desc.ret[1] || desc.ret[2] || desc.ret[0])
|
||||
pr_err("SCM call failed with ret val = %d %d %d %d\n",
|
||||
ret, (int)desc.ret[0],
|
||||
(int)desc.ret[1], (int)desc.ret[2]);
|
||||
ret = ret | desc.ret[0] | desc.ret[1] | desc.ret[2];
|
||||
}
|
||||
|
||||
dmac_inv_range(in_buf, in_buf + inbuf_flush_size);
|
||||
dmac_inv_range(out_buf, out_buf + outbuf_flush_size);
|
||||
return ret;
|
||||
|
|
Loading…
Add table
Reference in a new issue