]> asedeno.scripts.mit.edu Git - linux.git/commit
firmware: qcom: scm: Fix interrupted SCM calls
authorAndy Gross <andy.gross@linaro.org>
Wed, 1 Feb 2017 17:28:28 +0000 (11:28 -0600)
committerWill Deacon <will.deacon@arm.com>
Fri, 3 Feb 2017 18:46:33 +0000 (18:46 +0000)
commit82bcd087029f6056506ea929f11af02622230901
tree650b58791c4043fcfba21b78654723affaaff66a
parent680a0873e193bae666439f4b5e32c758e68f114c
firmware: qcom: scm: Fix interrupted SCM calls

This patch adds a Qualcomm specific quirk to the arm_smccc_smc call.

On Qualcomm ARM64 platforms, the SMC call can return before it has
completed.  If this occurs, the call can be restarted, but it requires
using the returned session ID value from the interrupted SMC call.

The quirk stores off the session ID from the interrupted call in the
quirk structure so that it can be used by the caller.

This patch folds in a fix given by Sricharan R:
https://lkml.org/lkml/2016/9/28/272

Signed-off-by: Andy Gross <andy.gross@linaro.org>
Reviewed-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/kernel/smccc-call.S
drivers/firmware/qcom_scm-64.c
include/linux/arm-smccc.h