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

Commit 173b3f88 authored by Simmi Pateriya's avatar Simmi Pateriya
Browse files

ASoC: wcd: correct data type in interrupt handler



The interrupt handler uses one byte to read the
interrupt status register. This is fine with 32-bit
architecture, but with 64 bit, this results in reading
the latched status interrupt register for analog part
incorrectly and thus the interrupt handler is not
dispatched.

CRs-Fixed: 717831
Change-Id: Ifd9d9bdc3ea2d393f44911d4588ef2f483c8a028
Signed-off-by: default avatarSimmi Pateriya <simmip@codeaurora.org>
parent 76a0a75b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -207,7 +207,7 @@ static int get_order_irq(int i)
static irqreturn_t wcd9xxx_spmi_irq_handler(int linux_irq, void *data)
{
	int irq, i, j;
	u8 status[NUM_IRQ_REGS] = {0};
	unsigned long status[NUM_IRQ_REGS] = {0};

	if (unlikely(wcd9xxx_spmi_lock_sleep() == false)) {
		pr_err("Failed to hold suspend\n");