diff mbox series

[4/5] ASoC: cs35l32: Add missing regmap use_single config

Message ID 20210511175718.15416-4-ckeepax@opensource.cirrus.com (mailing list archive)
State Accepted
Commit b1078e9869531af4f968ba1b9edad51264943bb8
Headers show
Series [1/5] ASoC: cs53l30: Add missing regmap use_single config | expand

Commit Message

Charles Keepax May 11, 2021, 5:57 p.m. UTC
This device requires single register transactions, this will
definely cause problems with the new device ID parsing which uses
regmap_bulk_read but might also show up in the cache sync sometimes.
Add the missing flags to the regmap_config.

Fixes: 283160f1419d ("ASoC: cs35l32: Minor error paths fixups")
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
---
 sound/soc/codecs/cs35l32.c | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

diff --git a/sound/soc/codecs/cs35l32.c b/sound/soc/codecs/cs35l32.c
index 7e1047362a901..933e3d627e5f8 100644
--- a/sound/soc/codecs/cs35l32.c
+++ b/sound/soc/codecs/cs35l32.c
@@ -262,6 +262,9 @@  static const struct regmap_config cs35l32_regmap = {
 	.readable_reg = cs35l32_readable_register,
 	.precious_reg = cs35l32_precious_register,
 	.cache_type = REGCACHE_RBTREE,
+
+	.use_single_read = true,
+	.use_single_write = true,
 };
 
 static int cs35l32_handle_of_data(struct i2c_client *i2c_client,