remoteproc: imx_rproc: ignore mapping vdev regions
[ Upstream commit 8f2d8961640f0346cbe892273c3260a0d30c1931 ] 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: Peng Fan <peng.fan@nxp.com> Reviewed-by: Mathieu Poirier <mathieu.poirier@linaro.org> Link: https://lore.kernel.org/r/1615029865-23312-10-git-send-email-peng.fan@oss.nxp.com Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org> Stable-dep-of: 2fa26ca8b786 ("remoteproc: imx_rproc: Skip over memory region when node value is NULL") Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
6909ec0bd6
commit
aa3771dae6
1 changed files with 3 additions and 0 deletions
|
@ -287,6 +287,9 @@ static int imx_rproc_addr_init(struct imx_rproc *priv,
|
|||
struct resource res;
|
||||
|
||||
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);
|
||||
if (err) {
|
||||
dev_err(dev, "unable to resolve memory region\n");
|
||||
|
|
Loading…
Reference in a new issue