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

Commit 156dbc5b authored by Arjun Singh's avatar Arjun Singh Committed by Gerrit - the friendly Code Review server
Browse files

soc: qcom: bgcom: wait for spi to be free



Adds a delay so that spi could be freed without hogging the
system by interrupts.

Change-Id: I713cfb4e0443c2926c7201f3fa9b8f23707a98aa
Signed-off-by: default avatarArjun Singh <arsingh@codeaurora.org>
parent 5326a970
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -928,6 +928,8 @@ static irqreturn_t bg_irq_tasklet_hndlr(int irq, void *device)
		pr_debug("No callback registered\n");
		return IRQ_HANDLED;
	} else if (spi_state == BGCOM_SPI_BUSY) {
		/* delay for SPI to be freed */
		msleep(50);
		return IRQ_HANDLED;
	} else if (!bg_spi->irq_lock) {
		bg_spi->irq_lock = 1;