Skip to contentSkip to conversation

remoteproc: imx: use device node name as processor name

PATCH Superseded Jiafei Pan 4 participants 8 messages Apr 30 – May 26

Subsystems (2)
lore
Share & tools
lore

Jiafei Pan

author
#0 lore raw

PATCH 1/1 remoteproc: imx: use device node name as processor name

As currently there are maybe multiple remote processors, so change from using fixed name to using device node name as remote processor name in order to make them can be distinguished by through of name in sys filesystem.

---
 drivers/remoteproc/imx_rproc.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/remoteproc/imx_rproc.c +1 -2
index e8d239bef5c9..38713f6f1c50 100644
@@ -1356,8 +1356,7 @@ static int imx_rproc_probe(struct platform_device *pdev)
 	unsigned long cpus_bits;
 	int ret;
 
-	/* set some other name then imx */
-	rproc = devm_rproc_alloc(dev, "imx-rproc", &imx_rproc_ops,
+	rproc = devm_rproc_alloc(dev, np->name, &imx_rproc_ops,
 				 NULL, sizeof(*priv));
 	if (!rproc)
 		return -ENOMEM;
Signature · 1 line
2.43.0
#1 lore raw
Quoted 6 lines · Jiafei Pan

As currently there are maybe multiple remote processors, so change from using fixed name to using device node name as remote processor name in order to make them can be distinguished by through of name in sys filesystem.

Please use git log --oneline drivers/remoteproc/imx_rproc.c and check the prefix subject for commit messges related to imx_rproc files.

9b2451658afa9 remoteproc: imx_rproc: Use devm_add_action_or_reset() for scu cleanup 65af722aa86fc remoteproc: imx_rproc: Use devm_clk_get_enabled() and simplify cleanup b0106defc0ff6 remoteproc: imx_rproc: Use devm_add_action_or_reset() for mailbox cleanup

Thanks,
Daniel.

author
#2 lore raw

PATCH v2 1/1 remoteproc: imx_rproc: Use device node name as processor name

As currently there are maybe multiple remote processors, so change from using fixed name to using device node name as remote processor name in order to make them can be distinguished by through of name in sys filesystem.

---
Fixes sine v1:
* Update patch subject to aligin prefix name with existing patches

 drivers/remoteproc/imx_rproc.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/remoteproc/imx_rproc.c +1 -2
index e8d239bef5c9..38713f6f1c50 100644
@@ -1356,8 +1356,7 @@ static int imx_rproc_probe(struct platform_device *pdev)
 	unsigned long cpus_bits;
 	int ret;
 
-	/* set some other name then imx */
-	rproc = devm_rproc_alloc(dev, "imx-rproc", &imx_rproc_ops,
+	rproc = devm_rproc_alloc(dev, np->name, &imx_rproc_ops,
 				 NULL, sizeof(*priv));
 	if (!rproc)
 		return -ENOMEM;
Signature · 1 line
2.43.0
author
#3 lore raw
In reply to Daniel Baluta
Quoted 13 lines · Jiafei Pan
Quoted 6 lines

As currently there are maybe multiple remote processors, so change from using fixed name to using device node name as remote processor name in order to make them can be distinguished by through of name in sys filesystem.

Please use git log --oneline drivers/remoteproc/imx_rproc.c and check the prefix subject for commit messges related to imx_rproc files.

Quoted 8 lines

9b2451658afa9 remoteproc: imx_rproc: Use devm_add_action_or_reset() for scu cleanup 65af722aa86fc remoteproc: imx_rproc: Use devm_clk_get_enabled() and simplify cleanup
b0106defc0ff6 remoteproc: imx_rproc: Use devm_add_action_or_reset() for mailbox cleanup

Thanks,
Daniel.

Updated, thanks.
Jiafei.

author
#4 lore raw

PATCH v2 1/1 remoteproc: imx_rproc: Use device node name as processor name

In reply to Daniel Baluta

As currently there are maybe multiple remote processors, so change from using fixed name to using device node name as remote processor name in order to make them can be distinguished by through of name in sys filesystem.

---
Fixes sine v1:
* Update patch subject to aligin prefix name with existing patches

 drivers/remoteproc/imx_rproc.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/remoteproc/imx_rproc.c +1 -2
index e8d239bef5c9..38713f6f1c50 100644
@@ -1356,8 +1356,7 @@ static int imx_rproc_probe(struct platform_device *pdev)
 	unsigned long cpus_bits;
 	int ret;
 
-	/* set some other name then imx */
-	rproc = devm_rproc_alloc(dev, "imx-rproc", &imx_rproc_ops,
+	rproc = devm_rproc_alloc(dev, np->name, &imx_rproc_ops,
 				 NULL, sizeof(*priv));
 	if (!rproc)
 		return -ENOMEM;
Signature · 1 line
2.43.0
Reviewed-by on v2 1/1
#5 lore raw

Re: [PATCH v2] remoteproc: imx_rproc: Use device node name as processor name

Quoted 6 lines · Jiafei Pan

As currently there are maybe multiple remote processors, so change from using fixed name to using device node name as remote processor name in order to make them can be distinguished by through of name in sys filesystem.

Quoted 21 lines

---
Fixes sine v1:
* Update patch subject to aligin prefix name with existing patches

 drivers/remoteproc/imx_rproc.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/remoteproc/imx_rproc.c +1 -2
index e8d239bef5c9..38713f6f1c50 100644
@@ -1356,8 +1356,7 @@ static int imx_rproc_probe(struct platform_device *pdev)
 	unsigned long cpus_bits;
 	int ret;
 
-	/* set some other name then imx */
-	rproc = devm_rproc_alloc(dev, "imx-rproc", &imx_rproc_ops,
+	rproc = devm_rproc_alloc(dev, np->name, &imx_rproc_ops,
 				 NULL, sizeof(*priv));
 	if (!rproc)
 		return -ENOMEM;
Reviewed-by on v2 1/1
#6 lore raw

Re: [PATCH v2] remoteproc: imx_rproc: Use device node name as processor name

In reply to Jiafei Pan
Quoted 6 lines · Jiafei Pan

As currently there are maybe multiple remote processors, so change from using fixed name to using device node name as remote processor name in order to make them can be distinguished by through of name in sys filesystem.

BTW:
please don't create thread with v1.

2026-04-30 6:17 [PATCH] remoteproc: imx: use device node name as processor name Jiafei Pan 2026-04-30 14:17 ` Daniel Baluta

2026-05-08  3:16   ` Jiafei Pan
2026-05-08  3:18   ` [PATCH v2] remoteproc: imx_rproc: Use " Jiafei Pan
2026-05-08  3:20   ` Jiafei Pan
2026-05-08  6:28     ` Daniel Baluta

https://lore.kernel.org/imx/[email protected]/T/#mf211972b33053e6cb0b4adbe1002623d911e0214

Regards
Peng

Quoted 24 lines

---
Fixes sine v1:
* Update patch subject to aligin prefix name with existing patches

drivers/remoteproc/imx_rproc.c | 3 +--

1 file changed, 1 insertion(+), 2 deletions(-)
drivers/remoteproc/imx_rproc.c +1 -2
index e8d239bef5c9..38713f6f1c50 100644
@@ -1356,8 +1356,7 @@ static int imx_rproc_probe(struct platform_device *pdev)
 	unsigned long cpus_bits;
 	int ret;
 
-	/* set some other name then imx */
-	rproc = devm_rproc_alloc(dev, "imx-rproc", &imx_rproc_ops,
+	rproc = devm_rproc_alloc(dev, np->name, &imx_rproc_ops,
 				 NULL, sizeof(*priv));
 	if (!rproc)
 		return -ENOMEM;
Signature · 1 line
2.43.0
maintainer Applied
#7 lore raw

Re: [PATCH v2] remoteproc: imx_rproc: Use device node name as processor name

In reply to Jiafei Pan
Quoted 5 lines · Jiafei Pan

As currently there are maybe multiple remote processors, so change from using fixed name to using device node name as remote processor name in order to make them can be distinguished by through of name in sys filesystem.

Quoted 8 lines

---
Fixes sine v1:
* Update patch subject to aligin prefix name with existing patches

 drivers/remoteproc/imx_rproc.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Applied.

Thanks,
Mathieu

Quoted 17 lines
drivers/remoteproc/imx_rproc.c +1 -2
index e8d239bef5c9..38713f6f1c50 100644
@@ -1356,8 +1356,7 @@ static int imx_rproc_probe(struct platform_device *pdev)
 	unsigned long cpus_bits;
 	int ret;
 
-	/* set some other name then imx */
-	rproc = devm_rproc_alloc(dev, "imx-rproc", &imx_rproc_ops,
+	rproc = devm_rproc_alloc(dev, np->name, &imx_rproc_ops,
 				 NULL, sizeof(*priv));
 	if (!rproc)
 		return -ENOMEM;
Signature · 1 line
2.43.0