From c7dad700c4263b990ded932d5524e4307100546c Mon Sep 17 00:00:00 2001 From: Shengjiu Wang Date: Fri, 22 Nov 2019 15:46:20 +0800 Subject: LF-106: ASoC: fsl_spdif: request BUS_FREQ_HIGH request BUS_FREQ_HIGH Signed-off-by: Shengjiu Wang --- sound/soc/fsl/fsl_spdif.c | 5 +++++ 1 file changed, 5 insertions(+) (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 3ae6dd089ce4..77901da5b8d8 100644 --- a/sound/soc/fsl/fsl_spdif.c +++ b/sound/soc/fsl/fsl_spdif.c @@ -19,6 +19,7 @@ #include #include #include +#include #include #include @@ -1561,6 +1562,8 @@ static int fsl_spdif_runtime_resume(struct device *dev) goto disable_spba_clk; } + request_bus_freq(BUS_FREQ_HIGH); + regcache_cache_only(spdif_priv->regmap, false); regcache_mark_dirty(spdif_priv->regmap); @@ -1595,6 +1598,8 @@ static int fsl_spdif_runtime_suspend(struct device *dev) &spdif_priv->regcache_srpc); regcache_cache_only(spdif_priv->regmap, true); + release_bus_freq(BUS_FREQ_HIGH); + for (i = 0; i < STC_TXCLK_SRC_MAX; i++) clk_disable_unprepare(spdif_priv->txclk[i]); -- cgit v1.2.3