]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commit75a5f89f635c2b7cd1f94fcaef5f764d480c8481
treeb1ce46c87c4dfbcf03ac3109e061113eba7a0f12
parentcfdeb8c37ed32024dcb7d2e3bd70e2a9f9dfc0e6
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