]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Mon, 14 Jan 2019 09:28:55 +0000 (09:28 +0000)
commit531e8ad3801f7416534b6a923a7577234fb9bf9b
tree7d0b6c07da353382d1cf40a1a10ca3b9fb18d21d
parentf84cadb9761d5b334c3dd726ff342415e1d6f818
remoteproc: Prevent incorrect rproc state on xfer mem ownership failure

BugLink: http://bugs.launchpad.net/bugs/1807469
commit 2724807f7f70a6a3e67b3f6bf921cc77ed39c8a1 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/remoteproc/qcom_q6v5_pil.c