Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0bc46342 authored by Jate Sujjavanich's avatar Jate Sujjavanich Committed by Grant Likely
Browse files

spi/m68knommu: Coldfire QSPI platform support



After grabbing a msg from the msgq, the mcfqspi_work function calls
list_del_init on the mcfqspi->msgq which unintentionally deletes the rest
of the list before it can be processed. If qspi call was made using
spi_sync, this can result in a process hang.

Signed-off-by: default avatarJate Sujjavanich <jsujjavanich@syntech-fuelmaster.com>
Acked-by: default avatarSteven King <sfking@fdwdc.com>
Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
parent 42ce7fd6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -317,7 +317,7 @@ static void mcfqspi_work(struct work_struct *work)
		msg = container_of(mcfqspi->msgq.next, struct spi_message,
				   queue);

		list_del_init(&mcfqspi->msgq);
		list_del_init(&msg->queue);
		spin_unlock_irqrestore(&mcfqspi->lock, flags);

		spi = msg->spi;