memory: tegra186-emc: Fix error return code in tegra186_emc_probe()
Subsystems (2)
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")
Reported-by Hulk Robot <[email protected]>
Signed-off-by Yang Yingliang <[email protected]>
--- drivers/memory/tegra/tegra186-emc.c | 1 + 1 file changed, 1 insertion(+)
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; }
Signature · 1 line
2.25.1
Quoted 15 lines · Yang Yingliang
Return the error code when command fails.
Fixes 13324edbe926 ("memory: tegra186-emc: Handle errors in BPMP response")Reported-by Hulk Robot <[email protected]>Signed-off-by Yang Yingliang <[email protected]>--- drivers/memory/tegra/tegra186-emc.c | 1 + 1 file changed, 1 insertion(+)drivers/memory/tegra/tegra186-emc.c +0
-0
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; }
Reviewed-by Mikko Perttunen <[email protected]>
Krzysztof Kozlowski
AppliedQuoted 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]>