]> git.baikalelectronics.ru Git - kernel.git/commit
spi: Add an helper to flush the message queue
authorBoris Brezillon <boris.brezillon@bootlin.com>
Sun, 22 Apr 2018 18:35:15 +0000 (20:35 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 23 Apr 2018 14:48:18 +0000 (15:48 +0100)
commit40c8caecd03356d0329d9f9e84349ed1c8c28173
tree8065f35dce6e5c4fd910a03916625c8b74083ccd
parentb3e03e7e4da472509d70a4df86210bcaa7108f86
spi: Add an helper to flush the message queue

This is needed by the spi-mem logic to force all messages that have been
queued before a memory operation to be sent before we start the memory
operation. We do that in order to guarantee that spi-mem operations do
not preempt regular SPI transfers.

Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/internals.h
drivers/spi/spi.c