]>
Commit | Line | Data |
---|---|---|
80ae7e1e GKH |
1 | From ad6eecbfc01c987e0253371f274c3872042e4350 Mon Sep 17 00:00:00 2001 |
2 | From: "S.j. Wang" <shengjiu.wang@nxp.com> | |
3 | Date: Thu, 16 May 2019 06:04:29 +0000 | |
4 | Subject: ASoC: cs42xx8: Add regcache mask dirty | |
5 | ||
6 | From: S.j. Wang <shengjiu.wang@nxp.com> | |
7 | ||
8 | commit ad6eecbfc01c987e0253371f274c3872042e4350 upstream. | |
9 | ||
10 | Add regcache_mark_dirty before regcache_sync for power | |
11 | of codec may be lost at suspend, then all the register | |
12 | need to be reconfigured. | |
13 | ||
14 | Fixes: 0c516b4ff85c ("ASoC: cs42xx8: Add codec driver | |
15 | support for CS42448/CS42888") | |
16 | Cc: <stable@vger.kernel.org> | |
17 | Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com> | |
18 | Signed-off-by: Mark Brown <broonie@kernel.org> | |
19 | Signed-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) { |