]> git.baikalelectronics.ru Git - kernel.git/commit
regmap: Don't generate gather writes for single register raw writes
authorMark Brown <broonie@linaro.org>
Tue, 8 Oct 2013 17:37:36 +0000 (18:37 +0100)
committerMark Brown <broonie@linaro.org>
Wed, 9 Oct 2013 13:05:21 +0000 (14:05 +0100)
commit56e3c5a8772111546039ab55993a1de8aced0c36
treec6397245cf3cafa078fa11dc60b5a10a7c560feb
parent5f1314ea1a10e58ff34ca247931990252f34f5d1
regmap: Don't generate gather writes for single register raw writes

Since it is quite common for single register raw or async writes to be
generated by rbtree cache syncs or firmware downloads and essentially all
hardware will be faster with only a single transfer optimise this case by
copying single values into the internal scratch buffer before sending.

Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/base/regmap/regmap.c