MLK-11004-1: ASoC: cs42888: Add regcache mask dirty in suspend
authorShengjiu Wang <shengjiu.wang@freescale.com>
Wed, 20 May 2015 10:01:00 +0000 (18:01 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:48:12 +0000 (14:48 -0500)
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)

sound/soc/codecs/cs42xx8.c

index 790efca..db90764 100644 (file)
@@ -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),