From 31ecfbd2efd6ae7c10bfb32c600bf99d1fd369d4 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> (cherry picked from commit 0153e60c26a0fdcf463fb16b090511da7e52df0c) --- 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 a6445187b6dcf6..e475e542ba391c 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