]> git.karo-electronics.de Git - mv-sheeva.git/commit
regmap: Allow drivers to sync only part of the register cache
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 23 Feb 2012 20:53:37 +0000 (20:53 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 24 Feb 2012 14:52:41 +0000 (14:52 +0000)
commit4d4cfd1656b5f6c88eae51c40741a695b108b006
treec20b71443a4643122523ccdb2a9034a389a52374
parentac8d91c801905a061ca883dca427a5e19602a1e7
regmap: Allow drivers to sync only part of the register cache

Provide a regcache_sync_region() operation which allows drivers to
write only part of the cache back to the hardware. This is intended
for use in cases like power domains or DSP memories where part of the
device register map may be reset without fully resetting the device.

Fully supporting these devices is likely to require additional work to
make specific regions of the register map cache only while they are in
reset, but this is enough for most devices.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/base/regmap/regcache.c
include/linux/regmap.h