]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - pending-4.14/asoc-cs42xx8-add-regcache-mask-dirty.patch
move existing queues out of the way for the moment...
[thirdparty/kernel/stable-queue.git] / pending-4.14 / asoc-cs42xx8-add-regcache-mask-dirty.patch
CommitLineData
80ae7e1e
GKH
1From ad6eecbfc01c987e0253371f274c3872042e4350 Mon Sep 17 00:00:00 2001
2From: "S.j. Wang" <shengjiu.wang@nxp.com>
3Date: Thu, 16 May 2019 06:04:29 +0000
4Subject: ASoC: cs42xx8: Add regcache mask dirty
5
6From: S.j. Wang <shengjiu.wang@nxp.com>
7
8commit ad6eecbfc01c987e0253371f274c3872042e4350 upstream.
9
10Add regcache_mark_dirty before regcache_sync for power
11of codec may be lost at suspend, then all the register
12need to be reconfigured.
13
14Fixes: 0c516b4ff85c ("ASoC: cs42xx8: Add codec driver
15support for CS42448/CS42888")
16Cc: <stable@vger.kernel.org>
17Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
18Signed-off-by: Mark Brown <broonie@kernel.org>
19Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
20
21---
22 sound/soc/codecs/cs42xx8.c | 1 +
23 1 file changed, 1 insertion(+)
24
25--- a/sound/soc/codecs/cs42xx8.c
26+++ b/sound/soc/codecs/cs42xx8.c
27@@ -559,6 +559,7 @@ static int cs42xx8_runtime_resume(struct
28 msleep(5);
29
30 regcache_cache_only(cs42xx8->regmap, false);
31+ regcache_mark_dirty(cs42xx8->regmap);
32
33 ret = regcache_sync(cs42xx8->regmap);
34 if (ret) {