summaryrefslogtreecommitdiff
path: root/sound/soc/codecs
diff options
context:
space:
mode:
authorShengjiu Wang <shengjiu.wang@freescale.com>2015-05-20 18:01:00 +0800
committerLeonard Crestez <leonard.crestez@nxp.com>2018-08-23 16:57:54 +0300
commitd6ad136a1404bf1b8c6424a0ea56067885f95f32 (patch)
treea1ce99a9dd2ba47a02714d2b09518a7419adccb1 /sound/soc/codecs
parentf98bc7451c77259f6c8744cf64de80b5893731b8 (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),