Commit afe670e2 authored by Dong Aisheng's avatar Dong Aisheng Committed by Bjorn Andersson

remoteproc: imx_rproc: Fix ignoring mapping vdev regions

vdev regions are typically named vdev0buffer, vdev0ring0, vdev0ring1 and
etc. Change to strncmp to cover them all.

Fixes: 8f2d8961 ("remoteproc: imx_rproc: ignore mapping vdev regions")
Reviewed-and-tested-by: default avatarPeng Fan <peng.fan@nxp.com>
Signed-off-by: default avatarDong Aisheng <aisheng.dong@nxp.com>
Signed-off-by: default avatarPeng Fan <peng.fan@nxp.com>
Cc: stable <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20210910090621.3073540-5-peng.fan@oss.nxp.comSigned-off-by: default avatarMathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
parent 91bb2663
...@@ -582,8 +582,8 @@ static int imx_rproc_addr_init(struct imx_rproc *priv, ...@@ -582,8 +582,8 @@ 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 */ /* Not map vdevbuffer, vdevring region */
if (!strcmp(node->name, "vdev")) if (!strncmp(node->name, "vdev", strlen("vdev")))
continue; continue;
err = of_address_to_resource(node, 0, &res); err = of_address_to_resource(node, 0, &res);
if (err) { if (err) {
......
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