remoteproc: imx_rproc: move memory parsing to rproc_ops
authorPeng Fan <peng.fan@nxp.com>
Thu, 8 Apr 2021 01:44:48 +0000 (09:44 +0800)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Wed, 14 Apr 2021 02:10:32 +0000 (21:10 -0500)
commit10a3d4079eaea06472f1981152e2840e7232ffa9
tree8555a6e6d3fab74d9bef79e6f88efc8f40142222
parentf638a19775ae60ae919ff604fdc04362ff4f817f
remoteproc: imx_rproc: move memory parsing to rproc_ops

Use the rproc_ops::prepare() hook for doing memory resources
reallocation when reattaching a remote procesor.

Suggested-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Reviewed-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Link: https://lore.kernel.org/r/1617846289-13496-4-git-send-email-peng.fan@oss.nxp.com
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/remoteproc/imx_rproc.c