Linux kernel and device drivers for NXP i.MX platforms
 help / color / mirror / Atom feed
* [PATCH] remoteproc: imx: use device node name as processor name
@ 2026-04-30  6:17 Jiafei Pan
  2026-04-30 14:17 ` Daniel Baluta
  0 siblings, 1 reply; 7+ messages in thread
From: Jiafei Pan @ 2026-04-30  6:17 UTC (permalink / raw)
  To: andersson, mathieu.poirier, Frank.Li, s.hauer, kernel, festevam,
	linux-remoteproc, imx, linux-arm-kernel, linux-kernel, peng.fan
  Cc: daniel.baluta, 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.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
---
 drivers/remoteproc/imx_rproc.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/remoteproc/imx_rproc.c b/drivers/remoteproc/imx_rproc.c
index e8d239bef5c9..38713f6f1c50 100644
--- a/drivers/remoteproc/imx_rproc.c
+++ b/drivers/remoteproc/imx_rproc.c
@@ -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;
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH] remoteproc: imx: use device node name as processor name
  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
                     ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Daniel Baluta @ 2026-04-30 14:17 UTC (permalink / raw)
  To: Jiafei Pan, andersson, mathieu.poirier, Frank.Li, s.hauer, kernel,
	festevam, linux-remoteproc, imx, linux-arm-kernel, linux-kernel,
	peng.fan
  Cc: daniel.baluta

On 4/30/26 09:17, Jiafei Pan wrote:
> 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.
> 
> Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>

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.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: [PATCH] remoteproc: imx: use device node name as processor name
  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
  2 siblings, 0 replies; 7+ messages in thread
From: Jiafei Pan @ 2026-05-08  3:16 UTC (permalink / raw)
  To: Daniel Baluta (OSS), andersson@kernel.org,
	mathieu.poirier@linaro.org, Frank Li, s.hauer@pengutronix.de,
	kernel@pengutronix.de, festevam@gmail.com,
	linux-remoteproc@vger.kernel.org, imx@lists.linux.dev,
	linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org, Peng Fan
  Cc: Daniel Baluta, Jiafei Pan

> On 4/30/26 09:17, Jiafei Pan wrote:
> > 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.
> >
> > Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
> 
> 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.

Updated, thanks.
Jiafei.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH v2] remoteproc: imx_rproc: Use device node name as processor name
  2026-04-30 14:17 ` Daniel Baluta
  2026-05-08  3:16   ` Jiafei Pan
@ 2026-05-08  3:18   ` Jiafei Pan
  2026-05-08  3:20   ` Jiafei Pan
  2 siblings, 0 replies; 7+ messages in thread
From: Jiafei Pan @ 2026-05-08  3:18 UTC (permalink / raw)
  To: daniel.baluta
  Cc: Frank.Li, Jiafei.Pan, andersson, daniel.baluta, festevam, imx,
	kernel, linux-arm-kernel, linux-kernel, linux-remoteproc,
	mathieu.poirier, peng.fan, s.hauer

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.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
---
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(-)

diff --git a/drivers/remoteproc/imx_rproc.c b/drivers/remoteproc/imx_rproc.c
index e8d239bef5c9..38713f6f1c50 100644
--- a/drivers/remoteproc/imx_rproc.c
+++ b/drivers/remoteproc/imx_rproc.c
@@ -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;
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH v2] remoteproc: imx_rproc: Use device node name as processor name
  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
  2026-05-09  3:32     ` Peng Fan
  2 siblings, 2 replies; 7+ messages in thread
From: Jiafei Pan @ 2026-05-08  3:20 UTC (permalink / raw)
  To: daniel.baluta
  Cc: Frank.Li, Jiafei.Pan, andersson, festevam, imx, kernel,
	linux-arm-kernel, linux-kernel, linux-remoteproc, mathieu.poirier,
	peng.fan, s.hauer

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.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
---
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(-)

diff --git a/drivers/remoteproc/imx_rproc.c b/drivers/remoteproc/imx_rproc.c
index e8d239bef5c9..38713f6f1c50 100644
--- a/drivers/remoteproc/imx_rproc.c
+++ b/drivers/remoteproc/imx_rproc.c
@@ -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;
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH v2] remoteproc: imx_rproc: Use device node name as processor name
  2026-05-08  3:20   ` Jiafei Pan
@ 2026-05-08  6:28     ` Daniel Baluta
  2026-05-09  3:32     ` Peng Fan
  1 sibling, 0 replies; 7+ messages in thread
From: Daniel Baluta @ 2026-05-08  6:28 UTC (permalink / raw)
  To: Jiafei Pan, daniel.baluta
  Cc: Frank.Li, andersson, festevam, imx, kernel, linux-arm-kernel,
	linux-kernel, linux-remoteproc, mathieu.poirier, peng.fan,
	s.hauer

On 5/8/26 06:20, Jiafei Pan wrote:
> 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.
> 
> Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>

Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>

> ---
> 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(-)
> 
> diff --git a/drivers/remoteproc/imx_rproc.c b/drivers/remoteproc/imx_rproc.c
> index e8d239bef5c9..38713f6f1c50 100644
> --- a/drivers/remoteproc/imx_rproc.c
> +++ b/drivers/remoteproc/imx_rproc.c
> @@ -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;


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v2] remoteproc: imx_rproc: Use device node name as processor name
  2026-05-08  3:20   ` Jiafei Pan
  2026-05-08  6:28     ` Daniel Baluta
@ 2026-05-09  3:32     ` Peng Fan
  1 sibling, 0 replies; 7+ messages in thread
From: Peng Fan @ 2026-05-09  3:32 UTC (permalink / raw)
  To: Jiafei Pan
  Cc: daniel.baluta, Frank.Li, andersson, festevam, imx, kernel,
	linux-arm-kernel, linux-kernel, linux-remoteproc, mathieu.poirier,
	peng.fan, s.hauer

On Fri, May 08, 2026 at 11:20:16AM +0800, Jiafei Pan wrote:
>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.
>
>Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>

Reviewed-by: Peng Fan <peng.fan@nxp.com>

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/ac390c82-91d9-4d8c-9514-b7cac0a4dd8a@oss.nxp.com/T/#mf211972b33053e6cb0b4adbe1002623d911e0214

Regards
Peng

>---
>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(-)
>
>diff --git a/drivers/remoteproc/imx_rproc.c b/drivers/remoteproc/imx_rproc.c
>index e8d239bef5c9..38713f6f1c50 100644
>--- a/drivers/remoteproc/imx_rproc.c
>+++ b/drivers/remoteproc/imx_rproc.c
>@@ -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;
>-- 
>2.43.0
>

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-05-09  3:29 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2026-05-09  3:32     ` Peng Fan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox