From: Xiaolei wang <[email protected]>

When probe fails, disable runtime, commit 6eb1453fde64
("LF-106: ASoC: fsl_ssi: request BUS_FREQ_AUDIO") introduces
a problem. When PROVE_LOCKING is turned on, the system will
randomly freeze at startup. This is related to AUDIO BUSFREQ.
Since IMX_SDMA is compiled as 'M', fsl_ssi will fail to probe,
but this does not disable runtime. It still operates the clock,
causing the system to randomly freeze without any trace.
Therefore, fix this problem to avoid random system exceptions.

Signed-off-by: Xiaolei wang <[email protected]>
---
 sound/soc/fsl/fsl_ssi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/fsl/fsl_ssi.c b/sound/soc/fsl/fsl_ssi.c
index 5b49ab260ff9..ceea5360c756 100644
--- a/sound/soc/fsl/fsl_ssi.c
+++ b/sound/soc/fsl/fsl_ssi.c
@@ -1596,7 +1596,7 @@ static int fsl_ssi_probe(struct platform_device *pdev)
        }
 
        dev_set_drvdata(dev, ssi);
-       pm_runtime_enable(&pdev->dev);
+       devm_pm_runtime_enable(&pdev->dev);
 
        if (ssi->soc->imx) {
                ret = fsl_ssi_imx_probe(pdev, ssi, iomem);
-- 
2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#14108): 
https://lists.yoctoproject.org/g/linux-yocto/message/14108
Mute This Topic: https://lists.yoctoproject.org/mt/106928999/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to