Skip to contentSkip to conversation

Patch "ASoC: wm8974: set cache type for regmap" has been added to the 4.1-stable tree

PATCH [email protected] 1 participant 1 message Jan 26, 2016

Subsystems (4)
lore
Share & tools
lore

[email protected]

author maintainer Applied
#0 lore raw

This is a note to let you know that I've just added the patch titled

ASoC: wm8974: set cache type for regmap

to the 4.1-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:

     asoc-wm8974-set-cache-type-for-regmap.patch

and it can be found in the queue-4.1 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

Quoted 1 line

From 1ea5998afe903384ddc16391d4c023cd4c867bea Mon Sep 17 00:00:00 2001

From: Mans Rullgard <[email protected]>
Date: Fri, 11 Dec 2015 11:27:08 +0000
Subject: ASoC: wm8974: set cache type for regmap

From: Mans Rullgard <[email protected]>

commit 1ea5998afe903384ddc16391d4c023cd4c867bea upstream.

Attempting to use this codec driver triggers a BUG() in regcache_sync() since no cache type is set. The register map of this device is fairly small and has few holes so a flat cache is suitable.

---
 sound/soc/codecs/wm8974.c |    1 +
 1 file changed, 1 insertion(+)
sound/soc/codecs/wm8974.c +1 -0
@@ -575,6 +575,7 @@ static const struct regmap_config wm8974
 	.max_register = WM8974_MONOMIX,
 	.reg_defaults = wm8974_reg_defaults,
 	.num_reg_defaults = ARRAY_SIZE(wm8974_reg_defaults),
+	.cache_type = REGCACHE_FLAT,
 };
 
 static int wm8974_probe(struct snd_soc_codec *codec)

Patches currently in stable-queue which might be from [email protected] are

queue-4.1/asoc-wm8974-set-cache-type-for-regmap.patch