Commit 0ec46ab6 authored by Olof Johansson's avatar Olof Johansson

Merge tag 'qcom-fixes-for-4.17-rc7' of...

Merge tag 'qcom-fixes-for-4.17-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/agross/linux into fixes

Qualcomm Fixes for 4.17-rc7

* Fix crash in qcom_scm_call_atomic1()

* tag 'qcom-fixes-for-4.17-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/agross/linux:
  firmware: qcom: scm: Fix crash in qcom_scm_call_atomic1()
Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
parents f2c56aac 5ec3444c
...@@ -147,7 +147,7 @@ static u32 smc(u32 cmd_addr) ...@@ -147,7 +147,7 @@ static u32 smc(u32 cmd_addr)
"smc #0 @ switch to secure world\n" "smc #0 @ switch to secure world\n"
: "=r" (r0) : "=r" (r0)
: "r" (r0), "r" (r1), "r" (r2) : "r" (r0), "r" (r1), "r" (r2)
: "r3"); : "r3", "r12");
} while (r0 == QCOM_SCM_INTERRUPTED); } while (r0 == QCOM_SCM_INTERRUPTED);
return r0; return r0;
...@@ -263,7 +263,7 @@ static s32 qcom_scm_call_atomic1(u32 svc, u32 cmd, u32 arg1) ...@@ -263,7 +263,7 @@ static s32 qcom_scm_call_atomic1(u32 svc, u32 cmd, u32 arg1)
"smc #0 @ switch to secure world\n" "smc #0 @ switch to secure world\n"
: "=r" (r0) : "=r" (r0)
: "r" (r0), "r" (r1), "r" (r2) : "r" (r0), "r" (r1), "r" (r2)
: "r3"); : "r3", "r12");
return r0; return r0;
} }
...@@ -298,7 +298,7 @@ static s32 qcom_scm_call_atomic2(u32 svc, u32 cmd, u32 arg1, u32 arg2) ...@@ -298,7 +298,7 @@ static s32 qcom_scm_call_atomic2(u32 svc, u32 cmd, u32 arg1, u32 arg2)
"smc #0 @ switch to secure world\n" "smc #0 @ switch to secure world\n"
: "=r" (r0) : "=r" (r0)
: "r" (r0), "r" (r1), "r" (r2), "r" (r3) : "r" (r0), "r" (r1), "r" (r2), "r" (r3)
); : "r12");
return r0; return r0;
} }
...@@ -328,7 +328,7 @@ u32 qcom_scm_get_version(void) ...@@ -328,7 +328,7 @@ u32 qcom_scm_get_version(void)
"smc #0 @ switch to secure world\n" "smc #0 @ switch to secure world\n"
: "=r" (r0), "=r" (r1) : "=r" (r0), "=r" (r1)
: "r" (r0), "r" (r1) : "r" (r0), "r" (r1)
: "r2", "r3"); : "r2", "r3", "r12");
} while (r0 == QCOM_SCM_INTERRUPTED); } while (r0 == QCOM_SCM_INTERRUPTED);
version = r1; version = r1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment