Skip to content
Snippets Groups Projects
Commit 31ecfbd2 authored by Clark Wang's avatar Clark Wang Committed by Leonard Crestez
Browse files

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: default avatarClark Wang <xiaoning.wang@nxp.com>
(cherry picked from commit 0153e60c26a0fdcf463fb16b090511da7e52df0c)
parent a00d62cd
No related branches found
No related tags found
No related merge requests found
...@@ -452,6 +452,7 @@ const struct regmap_config cs42xx8_regmap_config = { ...@@ -452,6 +452,7 @@ const struct regmap_config cs42xx8_regmap_config = {
.volatile_reg = cs42xx8_volatile_register, .volatile_reg = cs42xx8_volatile_register,
.writeable_reg = cs42xx8_writeable_register, .writeable_reg = cs42xx8_writeable_register,
.cache_type = REGCACHE_RBTREE, .cache_type = REGCACHE_RBTREE,
.use_single_rw = true,
}; };
EXPORT_SYMBOL_GPL(cs42xx8_regmap_config); EXPORT_SYMBOL_GPL(cs42xx8_regmap_config);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment