RE: [PATCH v3 3/5] remoteproc: imx_rproc: fix ignoring mapping vdev regions
From: Peng Fan <peng.fan@nxp.com>
Date: 2021-08-05 10:02:25
Also in:
linux-remoteproc
Subject: [PATCH v3 3/5] 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: 8f2d8961640f ("remoteproc: imx_rproc: ignore mapping vdev regions")
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>Tested-by: Peng Fan <peng.fan@nxp.com>
quoted hunk ↗ jump to hunk
--- v1->v3: * no changes --- drivers/remoteproc/imx_rproc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)diff --git a/drivers/remoteproc/imx_rproc.cb/drivers/remoteproc/imx_rproc.c index 71dcc6dd32e4..abfeac0b1738 100644--- a/drivers/remoteproc/imx_rproc.c +++ b/drivers/remoteproc/imx_rproc.c@@ -582,8 +582,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) { --2.25.1
_______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel