]> git.baikalelectronics.ru Git - kernel.git/commit
regmap: cache: Write consecutive registers in a single block write
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 29 Mar 2013 20:50:07 +0000 (20:50 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sat, 30 Mar 2013 13:52:36 +0000 (13:52 +0000)
commit014de6f66ecf88cd91b9cf3d05b009d171f53955
treeb1ce46c87c4dfbcf03ac3109e061113eba7a0f12
parent2e1705ef25920a9e297eafb57ff229a574914de6
regmap: cache: Write consecutive registers in a single block write

When syncing blocks of data using raw writes combine the writes into a
single block write, saving us bus overhead for setup, addressing and
teardown.

Currently the block write is done unconditionally as it is expected that
hardware which has a register format which can support raw writes will
support auto incrementing writes, this decision may need to be revised in
future.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Reviewed-by: Dimitris Papastamos <dp@opensource.wolfsonmicro.com>
drivers/base/regmap/regcache.c