Skip to content

Commit

Permalink
Input: spear-keyboard - fix inverted condition in interrupt handler
Browse files Browse the repository at this point in the history
We should return IRQ_NONE from interrupt handler in case keyboard
does not report DATA_AVAIL condition.

Signed-off-by: Rajeev Kumar <rajeev-dlh.kumar@st.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
  • Loading branch information
Rajeev Kumar authored and Dmitry Torokhov committed Mar 31, 2011
1 parent a718d79 commit 799a2a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/input/keyboard/spear-keyboard.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 799a2a2

Please sign in to comment.