ASoC: cs42xx8: Add regcache mask dirty [Linux 4.14.128]

ASoC: cs42xx8: Add regcache mask dirty [Linux 4.14.128]

This Linux kernel change "ASoC: cs42xx8: Add regcache mask dirty" is included in the Linux 4.14.128 release. This change is authored by S.j. Wang < [at]> on Thu May 16 06:04:29 2019 +0000. The commit for this change in Linux stable tree is c77b6ab (patch) which is from upstream commit ad6eecb. The same Linux upstream change may have been applied to various maintained Linux releases and you can find all Linux releases containing changes from upstream ad6eecb.

ASoC: cs42xx8: Add regcache mask dirty

commit ad6eecbfc01c987e0253371f274c3872042e4350 upstream.

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: <>
Signed-off-by: Shengjiu Wang <>
Signed-off-by: Mark Brown <>
Signed-off-by: Greg Kroah-Hartman <>

There is one line of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 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 c1785bd..204bb0e 100644
--- a/sound/soc/codecs/cs42xx8.c
+++ b/sound/soc/codecs/cs42xx8.c
@@ -559,6 +559,7 @@ static int cs42xx8_runtime_resume(struct device *dev)

    regcache_cache_only(cs42xx8->regmap, false);
+   regcache_mark_dirty(cs42xx8->regmap);

    ret = regcache_sync(cs42xx8->regmap);
    if (ret) {

Leave a Reply

Your email address will not be published. Required fields are marked *