https://github.com/torvalds/linux
Revision 815806e39bf6f7e7b34875d4a9609dbe76661782 authored by Elaine Zhang on 18 August 2016, 09:01:55 UTC, committed by Mark Brown on 18 August 2016, 10:09:12 UTC
regmap_write
->_regmap_raw_write
-->regcache_write first and than use map->bus->write to wirte i2c or spi
But if the i2c or spi transfer failed, But the cache is updated, So if I use
regmap_read will get the cache data which is not the real register value.

Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent b2c7f5d
History
Tip revision: 815806e39bf6f7e7b34875d4a9609dbe76661782 authored by Elaine Zhang on 18 August 2016, 09:01:55 UTC
regmap: drop cache if the bus transfer error
Tip revision: 815806e
File Mode Size
Documentation
arch
block
certs
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.get_maintainer.ignore -rw-r--r-- 31 bytes
.gitignore -rw-r--r-- 1.2 KB
.mailmap -rw-r--r-- 6.4 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 95.5 KB
Kbuild -rw-r--r-- 2.8 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 353.9 KB
Makefile -rw-r--r-- 56.0 KB
README -rw-r--r-- 18.1 KB
REPORTING-BUGS -rw-r--r-- 7.3 KB

README

back to top