summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-qcom
diff options
context:
space:
mode:
authorOlav Haugan <ohaugan@codeaurora.org>2014-08-04 18:31:49 -0700
committerKumar Gala <galak@codeaurora.org>2015-01-19 11:53:32 -0600
commit4139447035463a1ec96ceef268716dd5cec6373c (patch)
treef572baced55b1642fd7fe2c1b5eeb1ae51a9e135 /arch/arm/mach-qcom
parent404b5a97f5a2a718bb0feccc3712b1ab88f073d5 (diff)
downloadlinux-4139447035463a1ec96ceef268716dd5cec6373c.tar.gz
linux-4139447035463a1ec96ceef268716dd5cec6373c.tar.bz2
linux-4139447035463a1ec96ceef268716dd5cec6373c.zip
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: Olav Haugan <ohaugan@codeaurora.org> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> Signed-off-by: Kumar Gala <galak@codeaurora.org>
Diffstat (limited to 'arch/arm/mach-qcom')
-rw-r--r--arch/arm/mach-qcom/scm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/mach-qcom/scm.c b/arch/arm/mach-qcom/scm.c
index ec37b037e69c..a77349d34e78 100644
--- a/arch/arm/mach-qcom/scm.c
+++ b/arch/arm/mach-qcom/scm.c
@@ -152,6 +152,7 @@ static inline void *scm_get_response_buffer(const struct scm_response *rsp)
static int scm_remap_error(int err)
{
+ pr_err("scm_call failed with error code %d\n", err);
switch (err) {
case SCM_ERROR:
return -EIO;