Skip to contentSkip to conversation

input/spear-keyboard fix: return IRQ_NONE if (status reg & DATA_AVAIL)

PATCH RESEND New Rajeev Kumar 2 participants 2 messages Mar 28, 2011 – Mar 31, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 input/spear-keyboard fix: return IRQ_NONE if (status reg & DATA_AVAIL)

We should return IRQ_NONE from interrupt handler in case data is not avail for keyboard

---
 drivers/input/keyboard/spear-keyboard.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/input/keyboard/spear-keyboard.c +1 -1
index f18dc67..c6ab1df 100644
@@ -70,7 +70,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) {
Signature · 1 line
1.6.0.2
maintainer Applied
#1 lore raw

PATCH RESEND 1/1 input/spear-keyboard fix: return IRQ_NONE if (status reg & DATA_AVAIL)

Quoted 3 lines · Rajeev Kumar

We should return IRQ_NONE from interrupt handler in case data is not avail for keyboard

Applied, thank you Rajeev.

Quoted 21 lines
---
 drivers/input/keyboard/spear-keyboard.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/input/keyboard/spear-keyboard.c +1 -1
index f18dc67..c6ab1df 100644
@@ -70,7 +70,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) {
Signature · 1 line
1.6.0.2
Signature · 1 line
Dmitry