From a095726fea55c3697ba490ade96dd58c279d3d01 Mon Sep 17 00:00:00 2001 From: Clark Wang <xiaoning.wang@nxp.com> Date: Mon, 18 Feb 2019 17:14:19 +0800 Subject: [PATCH] MLK-20940-3 codecs: cs42xx8: use single read/write to send i2c msg cs42xx8 will call regcache_sync to refresh its register cache. However, it will send a long msg which length is greater than the max buffer size of virtual i2c driver. It will cause the regcache_sync operation failed. So, use the single read/write to send i2c msg in regcache functions. Signed-off-by: Clark Wang <xiaoning.wang@nxp.com> --- 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 f01510682c93b0..2e772427b48a54 100644 --- a/sound/soc/codecs/cs42xx8.c +++ b/sound/soc/codecs/cs42xx8.c @@ -452,6 +452,7 @@ const struct regmap_config cs42xx8_regmap_config = { .volatile_reg = cs42xx8_volatile_register, .writeable_reg = cs42xx8_writeable_register, .cache_type = REGCACHE_RBTREE, + .use_single_rw = true, }; EXPORT_SYMBOL_GPL(cs42xx8_regmap_config); -- GitLab