Commit 8f2d8961 authored by Peng Fan's avatar Peng Fan Committed by Bjorn Andersson

remoteproc: imx_rproc: ignore mapping vdev regions

vdev regions are vdev0vring0, vdev0vring1, vdevbuffer and similar.
They are handled by remoteproc common code, no need to map in imx
rproc driver.
Signed-off-by: default avatarPeng Fan <peng.fan@nxp.com>
Reviewed-by: default avatarMathieu Poirier <mathieu.poirier@linaro.org>
Link: https://lore.kernel.org/r/1615029865-23312-10-git-send-email-peng.fan@oss.nxp.comSigned-off-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
parent 4ab8f960
...@@ -417,6 +417,9 @@ static int imx_rproc_addr_init(struct imx_rproc *priv, ...@@ -417,6 +417,9 @@ static int imx_rproc_addr_init(struct imx_rproc *priv,
struct resource res; struct resource res;
node = of_parse_phandle(np, "memory-region", a); node = of_parse_phandle(np, "memory-region", a);
/* Not map vdev region */
if (!strcmp(node->name, "vdev"))
continue;
err = of_address_to_resource(node, 0, &res); err = of_address_to_resource(node, 0, &res);
if (err) { if (err) {
dev_err(dev, "unable to resolve memory region\n"); dev_err(dev, "unable to resolve memory region\n");
......
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