]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
spi: Check to see if the device is processing a message before we idle
authorMark Brown <broonie@kernel.org>
Tue, 9 Dec 2014 19:46:56 +0000 (19:46 +0000)
committerMark Brown <broonie@kernel.org>
Thu, 11 Dec 2014 12:23:23 +0000 (12:23 +0000)
commit983aee5d7090cf12b624f18533777caa09d067b1
tree1067f7f977d4771707a2c1a4f2f1e3af1d3dd93d
parent5424d43e4daddf71aaa60d6565c8816af9150adf
spi: Check to see if the device is processing a message before we idle

cur_msg is updated under the queue lock and holds the message we are
currently processing. Since currently we only ever do removals in the
pump kthread it doesn't matter in what order we do things but we want
to be able to push things out from the submitting thread so pull the
check to see if we're currently handling a message before we check to
see if the queue is idle.

Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi.c