]> git.baikalelectronics.ru Git - kernel.git/commit
regmap: Track if the register cache is dirty and suppress unneeded syncs
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 26 Oct 2011 08:34:22 +0000 (10:34 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 8 Nov 2011 11:38:15 +0000 (11:38 +0000)
commitc210197b2a8b37296ca5d1fe4b2b0612690830d7
tree329564b9bdc3cac89a3ac1586c9e5812ab21bf1c
parentee62ff854712868eaa83b506713bfd0a11c5dead
regmap: Track if the register cache is dirty and suppress unneeded syncs

Allow drivers to optimise out the register cache sync if they didn't need
to do one. If the hardware is desynced from the register cache (by power
loss for example) then the driver should call regcache_mark_dirty() to
let the core know about this.

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