remoteproc: imx_rproc: Fix ignoring mapping vdev regions
[ Upstream commit afe670e23af91d8a74a8d7049f6e0984bbf6ea11 ] vdev regions are typically named vdev0buffer, vdev0ring0, vdev0ring1 and etc. Change to strncmp to cover them all. Fixes: 8f2d8961640f ("remoteproc: imx_rproc: ignore mapping vdev regions") Reviewed-and-tested-by: Peng Fan <peng.fan@nxp.com> Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com> Cc: stable <stable@vger.kernel.org> Link: https://lore.kernel.org/r/20210910090621.3073540-5-peng.fan@oss.nxp.com Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org> 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
aa3771dae6
commit
d47610682a
1 changed files with 2 additions and 2 deletions
|
@ -287,8 +287,8 @@ 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"))
|
||||
/* Not map vdevbuffer, vdevring region */
|
||||
if (!strncmp(node->name, "vdev", strlen("vdev")))
|
||||
continue;
|
||||
err = of_address_to_resource(node, 0, &res);
|
||||
if (err) {
|
||||
|
|
Loading…
Reference in a new issue