diff options
author | David Jander <david@protonic.nl> | 2022-06-21 08:12:29 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-06-27 13:27:21 +0100 |
commit | 049d6ccc4da8d34f382949ebec6d4fb318a9c7c0 (patch) | |
tree | e59edaaa79b811073068ce34b643290cf7608de1 /drivers/spi | |
parent | d5256cce1f50ff4c8fad6b8eb7b4ec9e47d38925 (diff) | |
download | linux-049d6ccc4da8d34f382949ebec6d4fb318a9c7c0.tar.gz linux-049d6ccc4da8d34f382949ebec6d4fb318a9c7c0.tar.bz2 linux-049d6ccc4da8d34f382949ebec6d4fb318a9c7c0.zip |
spi: Remove check for idling in __spi_pump_messages()
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>
Diffstat (limited to 'drivers/spi')
-rw-r--r-- | drivers/spi/spi.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index d8d2b7ac78f2..71b767a9ad77 100644 --- a/drivers/spi/spi.c +++ b/drivers/spi/spi.c @@ -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) |