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

Commit 051d33e7 authored by Arjun Singh's avatar Arjun Singh
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: I88a428a4cf95be380d1bfa09020e505bd819d37c
Signed-off-by: default avatarArjun Singh <arsingh@codeaurora.org>
parent 80922117
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -927,6 +927,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;