801-audio-0064-ASoC-fsl_sai-Mark-cache-dirty-at-resume.patch 967 B

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