Skip to content

Commit 6ea8d7b

Browse files
brooniegregkh
authored andcommitted
regmap: Don't attempt block writes when syncing cache on single_rw devices
commit 5c1ebe7 upstream. If the device can't support block writes then don't attempt to use raw syncing which will automatically generate block writes for adjacent registers, use the existing _single() block syncing implementation. Reported-by: Jarkko Nikula <jarkko.nikula@linux.intel.com> Tested-by: Jarkko Nikula <jarkko.nikula@linux.intel.com> Signed-off-by: Mark Brown <broonie@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 081f1af commit 6ea8d7b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/base/regmap/regcache.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,7 @@ int regcache_sync_block(struct regmap *map, void *block,
698698
unsigned int block_base, unsigned int start,
699699
unsigned int end)
700700
{
701-
if (regmap_can_raw_write(map))
701+
if (regmap_can_raw_write(map) && !map->use_single_rw)
702702
return regcache_sync_block_raw(map, block, cache_present,
703703
block_base, start, end);
704704
else

0 commit comments

Comments
 (0)