remoteproc: Refactor function rproc_free_vring()
authorMathieu Poirier <mathieu.poirier@linaro.org>
Tue, 14 Jul 2020 19:50:34 +0000 (13:50 -0600)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Fri, 17 Jul 2020 06:06:13 +0000 (23:06 -0700)
commit4d3ebb3b99905e0e1c83b320764495f5fc3f93fe
tree8da1bee8ff62f141e10bedeff28f57464318d13a
parente3d2193959824e2119996fe361f92b34750de2b0
remoteproc: Refactor function rproc_free_vring()

When function rproc_free_vring() clears the virtio device section
it does so on the cached resource table rather than the one
installed in the remote processor memory.  When a remote processor
has been booted by another entity there is no need to use a cached
table and as such, no need to clear the virtio device section in
it.

Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Tested-by: Arnaud Pouliquen <arnaud.pouliquen@st.com>
Link: https://lore.kernel.org/r/20200714195035.1426873-9-mathieu.poirier@linaro.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/remoteproc/remoteproc_core.c