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

Commit 799a2a21 authored by Rajeev Kumar's avatar Rajeev Kumar Committed by Dmitry Torokhov
Browse files

Input: spear-keyboard - fix inverted condition in interrupt handler



We should return IRQ_NONE from interrupt handler in case keyboard
does not report DATA_AVAIL condition.

Signed-off-by: default avatarRajeev Kumar <rajeev-dlh.kumar@st.com>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent a718d79c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -69,7 +69,7 @@ static irqreturn_t spear_kbd_interrupt(int irq, void *dev_id)
	u8 sts, val;

	sts = readb(kbd->io_base + STATUS_REG);
	if (sts & DATA_AVAIL)
	if (!(sts & DATA_AVAIL))
		return IRQ_NONE;

	if (kbd->last_key != KEY_RESERVED) {