[<prev] [next>] [day] [month] [year] [list]
Message-ID: <a81cd72c3356768df70d6ae052a48a5f92e41ce5.1558063199.git.shengjiu.wang@nxp.com>
Date: Fri, 17 May 2019 03:22:48 +0000
From: "S.j. Wang" <shengjiu.wang@....com>
To: "brian.austin@...rus.com" <brian.austin@...rus.com>,
"Paul.Handrigan@...rus.com" <Paul.Handrigan@...rus.com>,
"lgirdwood@...il.com" <lgirdwood@...il.com>,
"broonie@...nel.org" <broonie@...nel.org>,
"perex@...ex.cz" <perex@...ex.cz>,
"tiwai@...e.com" <tiwai@...e.com>,
"alsa-devel@...a-project.org" <alsa-devel@...a-project.org>
CC: "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: [PATCH V2] ASoC: cs42xx8: Add regcache mask dirty
Add regcache_mark_dirty before regcache_sync for power
of codec may be lost at suspend, then all the register
need to be reconfigured.
Fixes: 0c516b4ff85c ("ASoC: cs42xx8: Add codec driver support for CS42448/CS42888")
Cc: <stable@...r.kernel.org>
Signed-off-by: Shengjiu Wang <shengjiu.wang@....com>
---
Changs in V2
- Don't split Fixes tag.
sound/soc/codecs/cs42xx8.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/sound/soc/codecs/cs42xx8.c b/sound/soc/codecs/cs42xx8.c
index ebb9e0cf8364..28a4ac36c4f8 100644
--- a/sound/soc/codecs/cs42xx8.c
+++ b/sound/soc/codecs/cs42xx8.c
@@ -558,6 +558,7 @@ static int cs42xx8_runtime_resume(struct device *dev)
msleep(5);
regcache_cache_only(cs42xx8->regmap, false);
+ regcache_mark_dirty(cs42xx8->regmap);
ret = regcache_sync(cs42xx8->regmap);
if (ret) {
--
2.21.0
Powered by blists - more mailing lists