MLK-23651: ASoC: fsl_spdif: Fix hang issue in reboot

In reboot, system will try to access regisers through
the dai controls, but the clock is not bind with regmap,
then system hang.

So we enable regcache_cache_only in probe to fix this
issue.

Fixes: d55d453fdf ("MLK-23618-11: ASoC: fsl_spdif: Don't bind clock with regmap")
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: Viorel Suman <viorel.suman@nxp.com>
This commit is contained in:
Shengjiu Wang 2020-03-23 12:23:39 +08:00
parent c459da2814
commit bb6511173a

View file

@ -1505,6 +1505,7 @@ static int fsl_spdif_probe(struct platform_device *pdev)
clk_disable_unprepare(spdif_priv->coreclk);
pm_runtime_enable(&pdev->dev);
regcache_cache_only(spdif_priv->regmap, true);
/* Register with ASoC */
dev_set_drvdata(&pdev->dev, spdif_priv);