1f74ff235aba964cc8630ccfabeb482570e99799
[openwrt/staging/wigyori.git] / target / linux / layerscape / patches-5.4 / 801-audio-0064-ASoC-fsl_sai-Mark-cache-dirty-at-resume.patch
1 From e89355ed8ddefc68e33a754fe8be067cee54ce62 Mon Sep 17 00:00:00 2001
2 From: Daniel Baluta <daniel.baluta@nxp.com>
3 Date: Wed, 19 Jun 2019 19:50:31 +0300
4 Subject: [PATCH] ASoC: fsl_sai: Mark cache dirty at resume
5
6 This is needed so that at resume will restore the
7 correct SAI registers.
8
9 Looks like the call to regcache_mark_dirty was missed when
10 porting commit 760bd6187413e37c8 ("MLK-15960-2: ASoC: fsl_sai: refine
11 the pm runtime function")
12
13 Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
14 ---
15 sound/soc/fsl/fsl_sai.c | 2 ++
16 1 file changed, 2 insertions(+)
17
18 --- a/sound/soc/fsl/fsl_sai.c
19 +++ b/sound/soc/fsl/fsl_sai.c
20 @@ -1616,6 +1616,8 @@ static int fsl_sai_runtime_resume(struct
21 PM_QOS_CPU_DMA_LATENCY, 0);
22
23 regcache_cache_only(sai->regmap, false);
24 + regcache_mark_dirty(sai->regmap);
25 +
26 regmap_write(sai->regmap, FSL_SAI_TCSR(offset), FSL_SAI_CSR_SR);
27 regmap_write(sai->regmap, FSL_SAI_RCSR(offset), FSL_SAI_CSR_SR);
28 usleep_range(1000, 2000);