linux/drivers/base/regmap
Dmitry Baryshkov 7b038e4deb regmap: fix page selection for noinc reads
[ Upstream commit 4003324856 ]

Non-incrementing reads can fail if register + length crosses page
border. However for non-incrementing reads we should not check for page
border crossing. Fix this by passing additional flag to _regmap_raw_read
and passing length to _regmap_select_page basing on the flag.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Fixes: 74fe7b551f ("regmap: Add regmap_noinc_read API")
Link: https://lore.kernel.org/r/20200917153405.3139200-1-dmitry.baryshkov@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-10-01 13:14:53 +02:00
..
internal.h regmap: Add regmap_noinc_read API 2018-08-09 11:00:15 +01:00
Kconfig soundwire: fix regmap dependencies and align with other serial links 2019-10-07 18:57:27 +02:00
Makefile regmap: add SCCB support 2018-07-18 15:45:23 +01:00
regcache-flat.c
regcache-lzo.c
regcache-rbtree.c
regcache.c
regmap-ac97.c
regmap-debugfs.c regmap: debugfs: check count when read regmap file 2020-07-31 18:37:49 +02:00
regmap-i2c.c regmap-i2c: Off by one in regmap_i2c_smbus_i2c_read/write() 2018-02-08 15:36:35 +00:00
regmap-irq.c regmap-irq: do not write mask register if mask_base is zero 2019-07-21 09:03:16 +02:00
regmap-mmio.c regmap: Skip clk_put for attached clocks when freeing context 2018-05-17 16:11:41 +09:00
regmap-sccb.c regmap: sccb: fix typo and sort headers alphabetically 2018-07-23 18:05:08 +01:00
regmap-sdw.c
regmap-slimbus.c regmap: slimbus: add support to multi read/write 2018-07-11 11:58:04 +01:00
regmap-spi.c
regmap-spmi.c
regmap-w1.c
regmap.c regmap: fix page selection for noinc reads 2020-10-01 13:14:53 +02:00
trace.h