]> 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>
Mon, 20 Jun 2022 10:35:36 +0000 (11:35 +0100)
commit7638fd6cc0d8482d218e8aedb035caad17626759
tree2c4d8d81c40a58f18861d860e8136400c6c184d4
parentd7bce5312956388ba5b6ca12b8812d2368d4563c
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 c239035ed752 ("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: c239035ed752 ("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