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>
This commit is contained in:
parent
d5256cce1f
commit
049d6ccc4d
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue