Skip to content

Commit

Permalink
remoteproc: imx_rproc: Fix ignoring mapping vdev regions
Browse files Browse the repository at this point in the history
vdev regions are typically named vdev0buffer, vdev0ring0, vdev0ring1 and
etc. Change to strncmp to cover them all.

Fixes: 8f2d896 ("remoteproc: imx_rproc: ignore mapping vdev regions")
Reviewed-and-tested-by: Peng Fan <[email protected]>
Signed-off-by: Dong Aisheng <[email protected]>
Signed-off-by: Peng Fan <[email protected]>
Cc: stable <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mathieu Poirier <[email protected]>
Signed-off-by: Bjorn Andersson <[email protected]>
  • Loading branch information
Dong Aisheng authored and andersson committed Sep 27, 2021
1 parent 91bb266 commit afe670e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/remoteproc/imx_rproc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit afe670e

Please sign in to comment.