Skip to content

Commit 23f1b49

Browse files
author
AngeloGioacchino Del Regno
committed
soc: mediatek: mtk-dvfsrc: Change error check for DVFSRCv4 START cmd
In preparation for adding support for DVFSRC Version 4, change the error check for the MTK_SIP_DVFSRC_START command in the probe function to error out only if BIT(0) is set: this is still valid for the previous DVFSRC versions, as those always set this bit in a fail reply anyway. Signed-off-by: Nicolas Frattaroli <nicolas.frattaroli@collabora.com> Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
1 parent 831ee17 commit 23f1b49

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/soc/mediatek/mtk-dvfsrc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ static int mtk_dvfsrc_probe(struct platform_device *pdev)
440440
/* Everything is set up - make it run! */
441441
arm_smccc_smc(MTK_SIP_DVFSRC_VCOREFS_CONTROL, MTK_SIP_DVFSRC_START,
442442
0, 0, 0, 0, 0, 0, &ares);
443-
if (ares.a0)
443+
if (ares.a0 & BIT(0))
444444
return dev_err_probe(&pdev->dev, -EINVAL, "Cannot start DVFSRC: %lu\n", ares.a0);
445445

446446
return 0;

0 commit comments

Comments
 (0)