remoteproc: stm32: Move memory parsing to rproc_ops
authorArnaud POULIQUEN <arnaud.pouliquen@foss.st.com>
Fri, 12 Mar 2021 16:24:43 +0000 (09:24 -0700)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Thu, 18 Mar 2021 12:55:46 +0000 (07:55 -0500)
commit6e20a05104e55dc0e4899db8110013d521d20a6e
treed0acc71ffde94efce196fe5b898c0d09742266af
parent8a471396d21ca499d89d4071b2b670258f009ffa
remoteproc: stm32: Move memory parsing to rproc_ops

Some actions such as memory resources reallocation are needed when
trying to reattach a co-processor. Use the prepare() operation for
these actions.

Co-developed-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Arnaud POULIQUEN <arnaud.pouliquen@foss.st.com>
Link: https://lore.kernel.org/r/20210312162453.1234145-8-mathieu.poirier@linaro.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/remoteproc/remoteproc_core.c
drivers/remoteproc/stm32_rproc.c