linux-stable/drivers/base/regmap
Ionut Nicu 515f226170 regmap: regcache: allow read-only regs to be cached
The regmap_writeable() check should not be done in
regcache_write() because this prevents read-only
registers to be cached. After a read on a read-only
register its value will not be stored in the cache
and the next time someone will try to read it the
value will be read from the bus instead of the
cache.

Instead the regmap_writeable() check should be done
in _regmap_write() to prevent callers from writing
to read-only registers.

Signed-off-by: Ionut Nicu <ioan.nicu.ext@nsn.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
2013-08-09 12:47:29 +01:00
..
internal.h regmap: fix regcache_reg_present() for empty cache 2013-08-09 12:47:29 +01:00
Kconfig regmap: select REGMAP if REGMAP_MMIO and REGMAP_IRQ enabled 2012-10-17 22:09:35 +09:00
Makefile regmap: flat: Add flat cache type 2013-01-02 10:58:53 +00:00
regcache-flat.c regmap: flat: Add flat cache type 2013-01-02 10:58:53 +00:00
regcache-lzo.c regmap: cache: Pass the map rather than the word size when updating values 2013-03-04 10:30:27 +08:00
regcache-rbtree.c Merge remote-tracking branch 'regmap/topic/cache' into regmap-next 2013-06-30 12:40:01 +01:00
regcache.c regmap: regcache: allow read-only regs to be cached 2013-08-09 12:47:29 +01:00
regmap-debugfs.c Merge remote-tracking branch 'regmap/topic/debugfs' into regmap-next 2013-06-30 12:40:02 +01:00
regmap-i2c.c i2c: Split I2C_M_NOSTART support out of I2C_FUNC_PROTOCOL_MANGLING 2012-05-30 10:55:34 +02:00
regmap-irq.c regmap: irq: Clarify error message when we fail to request primary IRQ 2013-03-19 10:50:56 +00:00
regmap-mmio.c regmap: mmio: add register clock support 2013-02-14 16:40:28 +00:00
regmap-spi.c regmap: spi: Handle allocation failures gracefully 2013-02-05 14:14:32 +00:00
regmap.c regmap: regcache: allow read-only regs to be cached 2013-08-09 12:47:29 +01:00