Commit 049d6ccc authored by David Jander's avatar David Jander Committed by Mark Brown

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: default avatarDavid Jander <david@protonic.nl>
Link: https://lore.kernel.org/r/20220621061234.3626638-7-david@protonic.nlSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent d5256cce
...@@ -1653,13 +1653,6 @@ static void __spi_pump_messages(struct spi_controller *ctlr, bool in_kthread) ...@@ -1653,13 +1653,6 @@ static void __spi_pump_messages(struct spi_controller *ctlr, bool in_kthread)
if (ctlr->cur_msg) if (ctlr->cur_msg)
goto out_unlock; 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 */ /* Check if the queue is idle */
if (list_empty(&ctlr->queue) || !ctlr->running) { if (list_empty(&ctlr->queue) || !ctlr->running) {
if (!ctlr->busy) if (!ctlr->busy)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment