summaryrefslogtreecommitdiffstats
path: root/Documentation/spi
diff options
context:
space:
mode:
authorMark Brown <broonie@linaro.org>2013-11-14 00:44:15 +0100
committerMark Brown <broonie@linaro.org>2013-11-24 15:04:17 +0100
commit90808738fd242ef2533e86f2f481bebe8a7aa11b (patch)
tree9a5debdf86da3fe08616f56c3c1246fe95f6f7d1 /Documentation/spi
parentLinux 3.13-rc1 (diff)
downloadlinux-90808738fd242ef2533e86f2f481bebe8a7aa11b.tar.xz
linux-90808738fd242ef2533e86f2f481bebe8a7aa11b.zip
spi: Factor validation and initialisation of messages outside lock
Currently we do a bunch of per-message validation and initialisation in __spi_async() which is called with the bus lock held. Since none of this validation depends on the current bus status there's no need to hold the lock to do it so split it out into a separate __spi_validate() function which is called prior to taking the bus lock. This could be slightly neater but keep things simple for now to show the code motion clearly. Based on observations from Martin Sperl. Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'Documentation/spi')
0 files changed, 0 insertions, 0 deletions