spi: mux: Fix mux interaction with fast path optimisations
[sfrench/cifs-2.6.git] / drivers / spi / spi.c
index 8f97a3eacdeab01d738036593faee2ac039988e2..5cbe090f76764f8a6e498f0a516b5ff9c8f7ea0d 100644 (file)
@@ -4033,7 +4033,7 @@ static int __spi_sync(struct spi_device *spi, struct spi_message *message)
         * guard against reentrancy from a different context. The io_mutex
         * will catch those cases.
         */
-       if (READ_ONCE(ctlr->queue_empty)) {
+       if (READ_ONCE(ctlr->queue_empty) && !ctlr->must_async) {
                message->actual_length = 0;
                message->status = -EINPROGRESS;