]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit651e013e3ce6c0646c39a07e22bebad75a207209
treec6397245cf3cafa078fa11dc60b5a10a7c560feb
parent7e09a979404ed07b8f05d09a0e87a87c7891f472
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