]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
remoteproc: imx_rproc: Use strstarts for "rsc-table" check
authorShenwei Wang <shenwei.wang@nxp.com>
Mon, 8 Dec 2025 23:33:02 +0000 (17:33 -0600)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Tue, 16 Dec 2025 21:50:36 +0000 (14:50 -0700)
commit93f51b9182a107cf5f5e8a7802cd90df0c9a7154
tree7b5492f33bea9c5c7b8d55ca32ed796bcb115f40
parent4200f873c4c4c35befca288fd299a41f9544cece
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: 67a7bc7f0358 ("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>
drivers/remoteproc/imx_rproc.c