* [PATCH 1/2] remoteproc: pru: Use rproc_of_parse_firmware() to get firmware name
@ 2026-03-02 20:27 Andrew Davis
2026-03-02 20:27 ` [PATCH 2/2] remoteproc: pru: Remove empty remove callback Andrew Davis
2026-03-06 17:35 ` [PATCH 1/2] remoteproc: pru: Use rproc_of_parse_firmware() to get firmware name Mathieu Poirier
0 siblings, 2 replies; 3+ messages in thread
From: Andrew Davis @ 2026-03-02 20:27 UTC (permalink / raw)
To: Bjorn Andersson, Mathieu Poirier
Cc: linux-remoteproc, linux-kernel, Andrew Davis
There is a helper function to get the firmware name, make use of that.
Signed-off-by: Andrew Davis <afd@ti.com>
---
drivers/remoteproc/pru_rproc.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/drivers/remoteproc/pru_rproc.c b/drivers/remoteproc/pru_rproc.c
index 5e3eb7b86a0e3..19b107d29242d 100644
--- a/drivers/remoteproc/pru_rproc.c
+++ b/drivers/remoteproc/pru_rproc.c
@@ -1003,11 +1003,9 @@ static int pru_rproc_probe(struct platform_device *pdev)
if (!data)
return -ENODEV;
- ret = of_property_read_string(np, "firmware-name", &fw_name);
- if (ret) {
- dev_err(dev, "unable to retrieve firmware-name %d\n", ret);
- return ret;
- }
+ ret = rproc_of_parse_firmware(dev, 0, &fw_name);
+ if (ret)
+ return dev_err_probe(dev, ret, "unable to retrieve firmware-name\n");
rproc = devm_rproc_alloc(dev, pdev->name, &pru_rproc_ops, fw_name,
sizeof(*pru));
--
2.39.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 2/2] remoteproc: pru: Remove empty remove callback
2026-03-02 20:27 [PATCH 1/2] remoteproc: pru: Use rproc_of_parse_firmware() to get firmware name Andrew Davis
@ 2026-03-02 20:27 ` Andrew Davis
2026-03-06 17:35 ` [PATCH 1/2] remoteproc: pru: Use rproc_of_parse_firmware() to get firmware name Mathieu Poirier
1 sibling, 0 replies; 3+ messages in thread
From: Andrew Davis @ 2026-03-02 20:27 UTC (permalink / raw)
To: Bjorn Andersson, Mathieu Poirier
Cc: linux-remoteproc, linux-kernel, Andrew Davis
The .remove() callback only prints out a debug message, remove
this otherwise unneeded callback.
Signed-off-by: Andrew Davis <afd@ti.com>
---
drivers/remoteproc/pru_rproc.c | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/drivers/remoteproc/pru_rproc.c b/drivers/remoteproc/pru_rproc.c
index 19b107d29242d..a4636c7bc6b7b 100644
--- a/drivers/remoteproc/pru_rproc.c
+++ b/drivers/remoteproc/pru_rproc.c
@@ -1078,14 +1078,6 @@ static int pru_rproc_probe(struct platform_device *pdev)
return 0;
}
-static void pru_rproc_remove(struct platform_device *pdev)
-{
- struct device *dev = &pdev->dev;
- struct rproc *rproc = platform_get_drvdata(pdev);
-
- dev_dbg(dev, "%s: removing rproc %s\n", __func__, rproc->name);
-}
-
static const struct pru_private_data pru_data = {
.type = PRU_TYPE_PRU,
};
@@ -1131,7 +1123,6 @@ static struct platform_driver pru_rproc_driver = {
.suppress_bind_attrs = true,
},
.probe = pru_rproc_probe,
- .remove = pru_rproc_remove,
};
module_platform_driver(pru_rproc_driver);
--
2.39.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 1/2] remoteproc: pru: Use rproc_of_parse_firmware() to get firmware name
2026-03-02 20:27 [PATCH 1/2] remoteproc: pru: Use rproc_of_parse_firmware() to get firmware name Andrew Davis
2026-03-02 20:27 ` [PATCH 2/2] remoteproc: pru: Remove empty remove callback Andrew Davis
@ 2026-03-06 17:35 ` Mathieu Poirier
1 sibling, 0 replies; 3+ messages in thread
From: Mathieu Poirier @ 2026-03-06 17:35 UTC (permalink / raw)
To: Andrew Davis; +Cc: Bjorn Andersson, linux-remoteproc, linux-kernel
On Mon, Mar 02, 2026 at 02:27:27PM -0600, Andrew Davis wrote:
> There is a helper function to get the firmware name, make use of that.
>
> Signed-off-by: Andrew Davis <afd@ti.com>
> ---
> drivers/remoteproc/pru_rproc.c | 8 +++-----
> 1 file changed, 3 insertions(+), 5 deletions(-)
>
... and this one too.
> diff --git a/drivers/remoteproc/pru_rproc.c b/drivers/remoteproc/pru_rproc.c
> index 5e3eb7b86a0e3..19b107d29242d 100644
> --- a/drivers/remoteproc/pru_rproc.c
> +++ b/drivers/remoteproc/pru_rproc.c
> @@ -1003,11 +1003,9 @@ static int pru_rproc_probe(struct platform_device *pdev)
> if (!data)
> return -ENODEV;
>
> - ret = of_property_read_string(np, "firmware-name", &fw_name);
> - if (ret) {
> - dev_err(dev, "unable to retrieve firmware-name %d\n", ret);
> - return ret;
> - }
> + ret = rproc_of_parse_firmware(dev, 0, &fw_name);
> + if (ret)
> + return dev_err_probe(dev, ret, "unable to retrieve firmware-name\n");
>
> rproc = devm_rproc_alloc(dev, pdev->name, &pru_rproc_ops, fw_name,
> sizeof(*pru));
> --
> 2.39.2
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-03-06 17:35 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-02 20:27 [PATCH 1/2] remoteproc: pru: Use rproc_of_parse_firmware() to get firmware name Andrew Davis
2026-03-02 20:27 ` [PATCH 2/2] remoteproc: pru: Remove empty remove callback Andrew Davis
2026-03-06 17:35 ` [PATCH 1/2] remoteproc: pru: Use rproc_of_parse_firmware() to get firmware name Mathieu Poirier
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox