From 310c7abc16d7dbb8870ec827a507405a6217e4f8 Mon Sep 17 00:00:00 2001 From: Shengjiu Wang Date: Wed, 20 May 2015 18:01:00 +0800 Subject: 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 (cherry picked from commit 9687aa5bbf5dd91b57f6e8b4b8ce69bf20e29c43) --- sound/soc/codecs/cs42xx8.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sound/soc/codecs') 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), -- cgit v1.2.3