android_kernel_samsung_a7y1.../drivers/base
Srinivas Kandagatla 6f11deb13c regmap: fix bulk writes on paged registers
[ Upstream commit db057679de3e9e6a03c1bcd5aee09b0d25fd9f5b ]

On buses like SlimBus and SoundWire which does not support
gather_writes yet in regmap, A bulk write on paged register
would be silently ignored after programming page.
This is because local variable 'ret' value in regmap_raw_write_impl()
gets reset to 0 once page register is written successfully and the
code below checks for 'ret' value to be -ENOTSUPP before linearising
the write buffer to send to bus->write().

Fix this by resetting the 'ret' value to -ENOTSUPP in cases where
gather_writes() is not supported or single register write is
not possible.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-04-06 19:54:53 +02:00
..
power PM / core: Propagate dev->power.wakeup_path when no callbacks 2020-04-06 18:19:21 +02:00
regmap regmap: fix bulk writes on paged registers 2020-04-06 19:54:53 +02:00
attribute_container.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
base.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
bus.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cacheinfo.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
class.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
component.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
container.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
core.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cpu.c x86/speculation/mds: Add sysfs reporting for MDS 2020-04-06 16:55:48 +02:00
dd.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
devcoredump.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
devres.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
devtmpfs.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
dma-coherent.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
dma-contiguous.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
dma-mapping.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
driver.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
firmware_class.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
firmware.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
hypervisor.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
init.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
isa.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Kconfig A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
map.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
memory.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
module.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
node.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pinctrl.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
platform-msi.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
platform.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
property.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
soc.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
syscore.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
topology.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
transport_class.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30