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)
commit988f259b46646934003ff8ae4966f7233691d1ad
tree8065f35dce6e5c4fd910a03916625c8b74083ccd
parent46336966bf0852d76f76c1292c057635b05dbb1b
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