Skip to contentSkip to conversation

memory: tegra186-emc: Fix error return code in tegra186_emc_probe()

PATCH Applied Yang Yingliang 3 participants 3 messages Sep 28, 2021 – Oct 7, 2021

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

PATCH v2 1/1 memory: tegra186-emc: Fix error return code in tegra186_emc_probe()

Return the error code when command fails.

Fixes 13324edbe926 ("memory: tegra186-emc: Handle errors in BPMP response")
---
 drivers/memory/tegra/tegra186-emc.c | 1 +
 1 file changed, 1 insertion(+)
drivers/memory/tegra/tegra186-emc.c +1 -0
index abc0c2eeaab7..746c4ef2c0af 100644
@@ -198,6 +198,7 @@ static int tegra186_emc_probe(struct platform_device *pdev)
 		goto put_bpmp;
 	}
 	if (msg.rx.ret < 0) {
+		err = -EINVAL;
 		dev_err(&pdev->dev, "EMC DVFS MRQ failed: %d (BPMP error code)\n", msg.rx.ret);
 		goto put_bpmp;
 	}
Signature · 1 line
2.25.1
Reviewed-by on v2 1/1
#1 lore raw
Quoted 15 lines · Yang Yingliang

Return the error code when command fails.

Fixes 13324edbe926 ("memory: tegra186-emc: Handle errors in BPMP response")
---
  drivers/memory/tegra/tegra186-emc.c | 1 +
  1 file changed, 1 insertion(+)
drivers/memory/tegra/tegra186-emc.c +0 -0
index abc0c2eeaab7..746c4ef2c0af 100644

drivers/memory/tegra/tegra186-emc.c static int tegra186_emc_probe(struct platform_device *pdev) · line 204

Quoted 7 lines
drivers/memory/tegra/tegra186-emc.c +1 -0
@@ -198,6 +198,7 @@ static int tegra186_emc_probe(struct platform_device *pdev)
  		goto put_bpmp;
  	}
  	if (msg.rx.ret < 0) {
+		err = -EINVAL;
  		dev_err(&pdev->dev, "EMC DVFS MRQ failed: %d (BPMP error code)\n", msg.rx.ret);
  		goto put_bpmp;
  	}
#2 lore raw
In reply to Yang Yingliang
Quoted 3 lines · Yang Yingliang

Return the error code when command fails.

Applied, thanks!

[1/1] memory: tegra186-emc: Fix error return code in tegra186_emc_probe()

      commit: 982ca19a09ac0365ad1409f919da43596d2a2276

Best regards,

Signature · 1 line
Krzysztof Kozlowski <[email protected]>