Skip to contentSkip to conversation

remoteproc: qcom_q6v5_mss: Provide errors for firmware-name parsing

PATCH Applied Bjorn Andersson 4 participants 4 messages Mar 12, 2021 – May 26, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 remoteproc: qcom_q6v5_mss: Provide errors for firmware-name parsing

Failing to read the "firmware-name" DT property without informing the developer is annoying, add some helpful debug prints.

---
 drivers/remoteproc/qcom_q6v5_mss.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
drivers/remoteproc/qcom_q6v5_mss.c +6 -2
index 66106ba25ba3..15abfbba78d2 100644
@@ -1661,8 +1661,10 @@ static int q6v5_probe(struct platform_device *pdev)
 	mba_image = desc->hexagon_mba_image;
 	ret = of_property_read_string_index(pdev->dev.of_node, "firmware-name",
 					    0, &mba_image);
-	if (ret < 0 && ret != -EINVAL)
+	if (ret < 0 && ret != -EINVAL) {
+		dev_err(&pdev->dev, "unable to read mba firmware-name\n");
 		return ret;
+	}
 
 	rproc = rproc_alloc(&pdev->dev, pdev->name, &q6v5_ops,
 			    mba_image, sizeof(*qproc));
@@ -1680,8 +1682,10 @@ static int q6v5_probe(struct platform_device *pdev)
 	qproc->hexagon_mdt_image = "modem.mdt";
 	ret = of_property_read_string_index(pdev->dev.of_node, "firmware-name",
 					    1, &qproc->hexagon_mdt_image);
-	if (ret < 0 && ret != -EINVAL)
+	if (ret < 0 && ret != -EINVAL) {
+		dev_err(&pdev->dev, "unable to read mpss firmware-name\n");
 		goto free_rproc;
+	}
 
 	platform_set_drvdata(pdev, qproc);
 
Signature · 1 line
2.29.2
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 25 lines · Bjorn Andersson

Failing to read the "firmware-name" DT property without informing the developer is annoying, add some helpful debug prints.

---
 drivers/remoteproc/qcom_q6v5_mss.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
drivers/remoteproc/qcom_q6v5_mss.c +3 -1
index 66106ba25ba3..15abfbba78d2 100644
@@ -1661,8 +1661,10 @@ static int q6v5_probe(struct platform_device *pdev)
 	mba_image = desc->hexagon_mba_image;
 	ret = of_property_read_string_index(pdev->dev.of_node, "firmware-name",
 					    0, &mba_image);
-	if (ret < 0 && ret != -EINVAL)
+	if (ret < 0 && ret != -EINVAL) {
+		dev_err(&pdev->dev, "unable to read mba firmware-name\n");
 		return ret;
+	}
 
 	rproc = rproc_alloc(&pdev->dev, pdev->name, &q6v5_ops,
 			    mba_image, sizeof(*qproc));

drivers/remoteproc/qcom_q6v5_mss.c static int q6v5_probe(struct platform_device *pdev) · line 1688

Quoted 8 lines
drivers/remoteproc/qcom_q6v5_mss.c +3 -1
@@ -1680,8 +1682,10 @@ static int q6v5_probe(struct platform_device *pdev)
 	qproc->hexagon_mdt_image = "modem.mdt";
 	ret = of_property_read_string_index(pdev->dev.of_node, "firmware-name",
 					    1, &qproc->hexagon_mdt_image);
-	if (ret < 0 && ret != -EINVAL)
+	if (ret < 0 && ret != -EINVAL) {
+		dev_err(&pdev->dev, "unable to read mpss firmware-name\n");
 		goto free_rproc;
+	}
Quoted 6 lines
drivers/remoteproc/qcom_q6v5_mss.c +0 -0
 	platform_set_drvdata(pdev, qproc);
 
Signature · 1 line
2.29.2
#2 lore raw
In reply to Bjorn Andersson
This patch was applied to andersson/remoteproc.git (refs/heads/for-next):

Hello:

This patch was applied to andersson/remoteproc.git (refs/heads/for-next):

Quoted 7 lines · On Thu, 11 Mar 2021 16:26:05 -0800 you wrote:

Failing to read the "firmware-name" DT property without informing the developer is annoying, add some helpful debug prints.

---
 drivers/remoteproc/qcom_q6v5_mss.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

Here is the summary with links:
- remoteproc: qcom_q6v5_mss: Provide errors for firmware-name parsing

    https://git.kernel.org/andersson/remoteproc/c/9af2a2a9c64e

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html

#3 lore raw
In reply to Bjorn Andersson
This patch was applied to qcom/linux.git (refs/heads/for-next):

Hello:

This patch was applied to qcom/linux.git (refs/heads/for-next):

Quoted 7 lines · On Thu, 11 Mar 2021 16:26:05 -0800 you wrote:

Failing to read the "firmware-name" DT property without informing the developer is annoying, add some helpful debug prints.

---
 drivers/remoteproc/qcom_q6v5_mss.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

Here is the summary with links:
- remoteproc: qcom_q6v5_mss: Provide errors for firmware-name parsing

    https://git.kernel.org/qcom/c/9af2a2a9c64e

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html