kernel: bump 5.4 to 5.4.73
[openwrt/openwrt.git] / target / linux / layerscape / patches-5.4 / 801-audio-0065-LF-106-ASoC-fsl_sai-request-BUS_FREQ_AUDIO.patch
1 From 702f662e21b9246348987a119e2a3ca16a31acb7 Mon Sep 17 00:00:00 2001
2 From: Shengjiu Wang <shengjiu.wang@nxp.com>
3 Date: Fri, 22 Nov 2019 15:36:31 +0800
4 Subject: [PATCH] LF-106: ASoC: fsl_sai: request BUS_FREQ_AUDIO
5
6 request BUS_FREQ_AUDIO
7
8 Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
9 ---
10 sound/soc/fsl/fsl_sai.c | 5 +++++
11 1 file changed, 5 insertions(+)
12
13 --- a/sound/soc/fsl/fsl_sai.c
14 +++ b/sound/soc/fsl/fsl_sai.c
15 @@ -23,6 +23,7 @@
16 #include <linux/mfd/syscon.h>
17 #include <linux/mfd/syscon/imx6q-iomuxc-gpr.h>
18 #include <linux/pm_runtime.h>
19 +#include <linux/busfreq-imx.h>
20
21 #include "fsl_dsd.h"
22 #include "fsl_sai.h"
23 @@ -1571,6 +1572,8 @@ static int fsl_sai_runtime_suspend(struc
24
25 regcache_cache_only(sai->regmap, true);
26
27 + release_bus_freq(BUS_FREQ_AUDIO);
28 +
29 if (sai->mclk_streams & BIT(SNDRV_PCM_STREAM_CAPTURE))
30 clk_disable_unprepare(sai->mclk_clk[sai->mclk_id[0]]);
31
32 @@ -1612,6 +1615,8 @@ static int fsl_sai_runtime_resume(struct
33 goto disable_tx_clk;
34 }
35
36 + request_bus_freq(BUS_FREQ_AUDIO);
37 +
38 if (sai->soc->flags & SAI_FLAG_PMQOS)
39 pm_qos_add_request(&sai->pm_qos_req,
40 PM_QOS_CPU_DMA_LATENCY, 0);