spi: Remove check for idling in __spi_pump_messages()
authorDavid Jander <david@protonic.nl>
Tue, 21 Jun 2022 06:12:29 +0000 (08:12 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 27 Jun 2022 12:27:21 +0000 (13:27 +0100)
Since the whole idling transition is locked by the io_mutex now, there is
no need to check this flag anymore.

Signed-off-by: David Jander <david@protonic.nl>
Link: https://lore.kernel.org/r/20220621061234.3626638-7-david@protonic.nl
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi.c

index d8d2b7ac78f2f979576fe2a9cf79ed47d0ec13fc..71b767a9ad779d9a96f15d91709594f025d6825d 100644 (file)
@@ -1653,13 +1653,6 @@ static void __spi_pump_messages(struct spi_controller *ctlr, bool in_kthread)
        if (ctlr->cur_msg)
                goto out_unlock;
 
-       /* If another context is idling the device then defer */
-       if (ctlr->idling) {
-               kthread_queue_work(ctlr->kworker, &ctlr->pump_messages);
-               spin_unlock_irqrestore(&ctlr->queue_lock, flags);
-               goto out_unlock;
-       }
-
        /* Check if the queue is idle */
        if (list_empty(&ctlr->queue) || !ctlr->running) {
                if (!ctlr->busy)