Commit 7b9f18ca authored by Mathieu Poirier's avatar Mathieu Poirier Committed by Bjorn Andersson

remoteproc: stm32: Decouple rproc from memory translation

Remove the remote processor from the process of parsing the memory
ranges since there is no correlation between them.
Acked-by: default avatarArnaud Pouliquen <arnaud.pouliquen@st.com>
Signed-off-by: default avatarMathieu Poirier <mathieu.poirier@linaro.org>
Reviewed-by: default avatarLoic Pallardy <loic.pallardy@st.com>
Reviewed-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20200714200445.1427257-2-mathieu.poirier@linaro.orgSigned-off-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
parent 4a4dca19
...@@ -128,10 +128,10 @@ static int stm32_rproc_mem_release(struct rproc *rproc, ...@@ -128,10 +128,10 @@ static int stm32_rproc_mem_release(struct rproc *rproc,
return 0; return 0;
} }
static int stm32_rproc_of_memory_translations(struct rproc *rproc) static int stm32_rproc_of_memory_translations(struct platform_device *pdev,
struct stm32_rproc *ddata)
{ {
struct device *parent, *dev = rproc->dev.parent; struct device *parent, *dev = &pdev->dev;
struct stm32_rproc *ddata = rproc->priv;
struct device_node *np; struct device_node *np;
struct stm32_rproc_mem *p_mems; struct stm32_rproc_mem *p_mems;
struct stm32_rproc_mem_ranges *mem_range; struct stm32_rproc_mem_ranges *mem_range;
...@@ -607,7 +607,7 @@ static int stm32_rproc_parse_dt(struct platform_device *pdev) ...@@ -607,7 +607,7 @@ static int stm32_rproc_parse_dt(struct platform_device *pdev)
rproc->auto_boot = of_property_read_bool(np, "st,auto-boot"); rproc->auto_boot = of_property_read_bool(np, "st,auto-boot");
return stm32_rproc_of_memory_translations(rproc); return stm32_rproc_of_memory_translations(pdev, ddata);
} }
static int stm32_rproc_probe(struct platform_device *pdev) static int stm32_rproc_probe(struct platform_device *pdev)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment