From bb6511173a4dc856f25914f94afe941da2dfd558 Mon Sep 17 00:00:00 2001 From: Shengjiu Wang Date: Mon, 23 Mar 2020 12:23:39 +0800 Subject: 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 Reviewed-by: Viorel Suman --- sound/soc/fsl/fsl_spdif.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sound/soc/fsl/fsl_spdif.c') 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); -- cgit v1.2.3