summaryrefslogtreecommitdiff
path: root/sound/soc/codecs
diff options
context:
space:
mode:
authorShengjiu Wang <shengjiu.wang@freescale.com>2015-05-20 18:01:00 +0800
committerOctavian Purdila <octavian.purdila@nxp.com>2017-02-23 14:21:42 +0200
commit310c7abc16d7dbb8870ec827a507405a6217e4f8 (patch)
tree92a162c088c1b4cb771ea70a5396bf214858f29f /sound/soc/codecs
parentf018bffe900be9b5e3cdb26f2a51bc803beb97a9 (diff)
MLK-11004-1: ASoC: cs42888: Add regcache mask dirty in suspend
Add regcache mask dirty in suspend, otherwise the register is not synced with cache in resume. Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com> (cherry picked from commit 9687aa5bbf5dd91b57f6e8b4b8ce69bf20e29c43)
Diffstat (limited to 'sound/soc/codecs')
-rw-r--r--sound/soc/codecs/cs42xx8.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/codecs/cs42xx8.c b/sound/soc/codecs/cs42xx8.c
index 790efca72dc8..db90764cdd51 100644
--- a/sound/soc/codecs/cs42xx8.c
+++ b/sound/soc/codecs/cs42xx8.c
@@ -661,6 +661,7 @@ static int cs42xx8_runtime_suspend(struct device *dev)
{
struct cs42xx8_priv *cs42xx8 = dev_get_drvdata(dev);
+ regcache_mark_dirty(cs42xx8->regmap);
regcache_cache_only(cs42xx8->regmap, true);
regulator_bulk_disable(ARRAY_SIZE(cs42xx8->supplies),