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

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.nl


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent d5256cce
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -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)