Home Home > GIT Browse > SLE15-AZURE
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2019-06-14 20:28:51 +0200
committerTakashi Iwai <tiwai@suse.de>2019-06-14 20:29:08 +0200
commitc27851467e6a2a9cb9d89a1d2075282be5201291 (patch)
tree17f2304160eb49927e36cc822ff406a508f59a20
parent9fdbf1a78bfa60dd69e312c8fa261f81aed68c03 (diff)
ASoC: cs42xx8: Add regcache mask dirty (bsc#1051510).
-rw-r--r--patches.drivers/ASoC-cs42xx8-Add-regcache-mask-dirty.patch39
-rw-r--r--series.conf1
2 files changed, 40 insertions, 0 deletions
diff --git a/patches.drivers/ASoC-cs42xx8-Add-regcache-mask-dirty.patch b/patches.drivers/ASoC-cs42xx8-Add-regcache-mask-dirty.patch
new file mode 100644
index 0000000000..66fe6a1f6d
--- /dev/null
+++ b/patches.drivers/ASoC-cs42xx8-Add-regcache-mask-dirty.patch
@@ -0,0 +1,39 @@
+From ad6eecbfc01c987e0253371f274c3872042e4350 Mon Sep 17 00:00:00 2001
+From: "S.j. Wang" <shengjiu.wang@nxp.com>
+Date: Thu, 16 May 2019 06:04:29 +0000
+Subject: [PATCH] ASoC: cs42xx8: Add regcache mask dirty
+Git-commit: ad6eecbfc01c987e0253371f274c3872042e4350
+Patch-mainline: v5.2-rc5
+References: bsc#1051510
+
+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@vger.kernel.org>
+Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
+Signed-off-by: Mark Brown <broonie@kernel.org>
+Acked-by: Takashi Iwai <tiwai@suse.de>
+
+---
+ 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.16.4
+
diff --git a/series.conf b/series.conf
index 1ba30ed260..a04d8fee09 100644
--- a/series.conf
+++ b/series.conf
@@ -22432,6 +22432,7 @@
patches.drivers/ALSA-firewire-motu-fix-destruction-of-data-for-isoch.patch
patches.drivers/ALSA-oxfw-allow-PCM-capture-for-Stanton-SCS.1m.patch
patches.drivers/ASoC-fsl_asrc-Fix-the-issue-about-unsupported-rate.patch
+ patches.drivers/ASoC-cs42xx8-Add-regcache-mask-dirty.patch
# davem/net
patches.drivers/ibmvnic-Do-not-close-unopened-driver-during-reset.patch