]> asedeno.scripts.mit.edu Git - linux.git/commit
remoteproc: Prevent incorrect rproc state on xfer mem ownership failure
authorSibi Sankar <sibis@codeaurora.org>
Tue, 17 Apr 2018 19:44:15 +0000 (01:14 +0530)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 17 Apr 2018 21:41:00 +0000 (14:41 -0700)
commit2724807f7f70a6a3e67b3f6bf921cc77ed39c8a1
treef07f36234737141ca027b77e4508f7568f95c978
parent60cc43fc888428bb2f18f08997432d426a243338
remoteproc: Prevent incorrect rproc state on xfer mem ownership failure

Any failure in the secure call for transferring mem ownership of mba
region to Q6 would result in reporting that the remoteproc device
is running. This is because the previous q6v5_clk_enable would have
been a success. Prevent this by updating variable 'ret' accordingly.

Cc: stable@vger.kernel.org
Signed-off-by: Sibi Sankar <sibis@codeaurora.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/remoteproc/qcom_q6v5_pil.c