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
6 This is needed so that at resume will restore the
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")
13 Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
15 sound/soc/fsl/fsl_sai.c | 2 ++
16 1 file changed, 2 insertions(+)
18 --- a/sound/soc/fsl/fsl_sai.c
19 +++ b/sound/soc/fsl/fsl_sai.c
20 @@ -1614,6 +1614,8 @@ static int fsl_sai_runtime_resume(struct
21 PM_QOS_CPU_DMA_LATENCY, 0);
23 regcache_cache_only(sai->regmap, false);
24 + regcache_mark_dirty(sai->regmap);
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);