]> git.baikalelectronics.ru Git - kernel.git/commit
regmap: Re-introduce bulk read support check in regmap_bulk_read()
authorJavier Martinez Canillas <javierm@redhat.com>
Thu, 16 Jun 2022 07:34:33 +0000 (09:34 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 24 Jun 2022 15:27:21 +0000 (16:27 +0100)
commitbb4a434d7395b42e8f6743f98f49ba845f243cc4
tree25ef778a612b232b12ff1540f06f2d84140faf2f
parentdfd81cf9344cd07a1a6c800410ad75b1bd5c7137
regmap: Re-introduce bulk read support check in regmap_bulk_read()

Support for drivers to define bulk read/write callbacks in regmap_config
was introduced by the commit 71ba7e7abdcd ("regmap: Add bulk read/write
callbacks into regmap_config"), but this commit wrongly dropped a check
in regmap_bulk_read() to determine whether bulk reads can be done or not.

Before that commit, it was checked if map->bus was set. Now has to check
if a map->read callback has been set.

Fixes: 71ba7e7abdcd ("regmap: Add bulk read/write callbacks into regmap_config")
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://lore.kernel.org/r/20220616073435.1988219-2-javierm@redhat.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/base/regmap/regmap.c