summaryrefslogtreecommitdiff
path: root/sound/soc/fsl/fsl_spdif.c
diff options
context:
space:
mode:
authorShengjiu Wang <shengjiu.wang@nxp.com>2020-03-23 12:23:39 +0800
committerShengjiu Wang <shengjiu.wang@nxp.com>2020-03-23 17:43:48 +0800
commitbb6511173a4dc856f25914f94afe941da2dfd558 (patch)
treef3c4883941c6f0ae279b0d2ef4b0d4ee96ae0fce /sound/soc/fsl/fsl_spdif.c
parentc459da2814de7afc0662ff0dcf30d7ee828a4461 (diff)
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: d55d453fdfe1 ("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>
Diffstat (limited to 'sound/soc/fsl/fsl_spdif.c')
-rw-r--r--sound/soc/fsl/fsl_spdif.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/fsl/fsl_spdif.c b/sound/soc/fsl/fsl_spdif.c
index 2cccf527eeec..49120b1f3132 100644
--- a/sound/soc/fsl/fsl_spdif.c
+++ b/sound/soc/fsl/fsl_spdif.c
@@ -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);