提交 41394470 编写于 作者: O Olav Haugan 提交者: Kumar Gala

ARM: qcom: scm: Add logging of actual return code from scm call

When an error occurs during an scm call the error returned is remapped so
we lose the original error code. This means that when an error occurs we
have no idea what actually failed within the secure environment.

Add a logging statement that will log the actual error code from scm call
allowing us to easily determine what caused the error to occur.
Signed-off-by: NOlav Haugan <ohaugan@codeaurora.org>
Signed-off-by: NStephen Boyd <sboyd@codeaurora.org>
Signed-off-by: NKumar Gala <galak@codeaurora.org>
上级 404b5a97
...@@ -152,6 +152,7 @@ static inline void *scm_get_response_buffer(const struct scm_response *rsp) ...@@ -152,6 +152,7 @@ static inline void *scm_get_response_buffer(const struct scm_response *rsp)
static int scm_remap_error(int err) static int scm_remap_error(int err)
{ {
pr_err("scm_call failed with error code %d\n", err);
switch (err) { switch (err) {
case SCM_ERROR: case SCM_ERROR:
return -EIO; return -EIO;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册