diff mbox

[4/7] ASoC: max98090: Mark cache as dirty prior to restoring

Message ID 1400248525-21900-5-git-send-email-jarkko.nikula@linux.intel.com (mailing list archive)
State Accepted
Commit f1c0bc9145f8abf0217fd71c09ff8c1e7f0671dd
Headers show

Commit Message

Jarkko Nikula May 16, 2014, 1:55 p.m. UTC
From: Liam Girdwood <liam.r.girdwood@linux.intel.com>

Make sure the cache is fully flushed at resume time.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
---
 sound/soc/codecs/max98090.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox

Patch

diff --git a/sound/soc/codecs/max98090.c b/sound/soc/codecs/max98090.c
index b3f447cc050c..8c88b4448f7e 100644
--- a/sound/soc/codecs/max98090.c
+++ b/sound/soc/codecs/max98090.c
@@ -2398,6 +2398,8 @@  static int max98090_resume(struct device *dev)
 	struct max98090_priv *max98090 = dev_get_drvdata(dev);
 	unsigned int status;
 
+	regcache_mark_dirty(max98090->regmap);
+
 	max98090_reset(max98090);
 
 	/* clear IRQ status */