Skip to content

Commit 93f51b9

Browse files
Shenwei Wangmathieupoirier
authored andcommitted
remoteproc: imx_rproc: Use strstarts for "rsc-table" check
The resource name may include an address suffix, for example: rsc-table@1fff8000. To handle such cases, use strstarts() instead of strcmp() when checking for "rsc-table". Signed-off-by: Shenwei Wang <shenwei.wang@nxp.com> Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com> Reviewed-by: Frank Li <Frank.Li@nxp.com> Reviewed-by: Zhongqiu Han <zhongqiu.han@oss.qualcomm.com> Reviewed-by: Peng Fan <peng.fan@nxp.com> Fixes: 67a7bc7 ("remoteproc: Use of_reserved_mem_region_* functions for "memory-region"") Link: https://lore.kernel.org/r/20251208233302.684139-1-shenwei.wang@nxp.com Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
1 parent 4200f87 commit 93f51b9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/remoteproc/imx_rproc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,7 @@ static int imx_rproc_addr_init(struct imx_rproc *priv,
694694
}
695695
priv->mem[b].sys_addr = res.start;
696696
priv->mem[b].size = resource_size(&res);
697-
if (!strcmp(res.name, "rsc-table"))
697+
if (strstarts(res.name, "rsc-table"))
698698
priv->rsc_table = priv->mem[b].cpu_addr;
699699
b++;
700700
}

0 commit comments

Comments
 (0)