From patchwork Mon Mar 28 11:59:06 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: rajeev X-Patchwork-Id: 668311 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p2SBxp69021800 for ; Mon, 28 Mar 2011 11:59:53 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753634Ab1C1L7u (ORCPT ); Mon, 28 Mar 2011 07:59:50 -0400 Received: from eu1sys200aog105.obsmtp.com ([207.126.144.119]:60182 "EHLO eu1sys200aog105.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753555Ab1C1L7u (ORCPT ); Mon, 28 Mar 2011 07:59:50 -0400 Received: from source ([138.198.100.35]) (using TLSv1) by eu1sys200aob105.postini.com ([207.126.147.11]) with SMTP ID DSNKTZB4MMFDN3m8pRNp7Qozy04KzPUr9zCy@postini.com; Mon, 28 Mar 2011 11:59:49 UTC Received: from zeta.dmz-ap.st.com (ns6.st.com [138.198.234.13]) by beta.dmz-ap.st.com (STMicroelectronics) with ESMTP id D588FF1; Mon, 28 Mar 2011 11:59:33 +0000 (GMT) Received: from Webmail-ap.st.com (eapex1hubcas1.st.com [10.80.176.8]) by zeta.dmz-ap.st.com (STMicroelectronics) with ESMTP id C15F2A46; Mon, 28 Mar 2011 11:59:33 +0000 (GMT) Received: from localhost (10.199.88.98) by Webmail-ap.st.com (10.80.176.7) with Microsoft SMTP Server (TLS) id 8.2.234.1; Mon, 28 Mar 2011 19:59:32 +0800 From: Rajeev Kumar To: , Cc: , , , , , Rajeev Kumar Subject: [PATCH resend] input/spear-keyboard fix: return IRQ_NONE if (status reg & DATA_AVAIL) Date: Mon, 28 Mar 2011 17:29:06 +0530 Message-ID: <1301313546-24420-1-git-send-email-rajeev-dlh.kumar@st.com> X-Mailer: git-send-email 1.6.0.2 MIME-Version: 1.0 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Mon, 28 Mar 2011 11:59:53 +0000 (UTC) diff --git a/drivers/input/keyboard/spear-keyboard.c b/drivers/input/keyboard/spear-keyboard.c index f18dc67..c6ab1df 100644 --- a/drivers/input/keyboard/spear-keyboard.c +++ b/drivers/input/keyboard/spear-keyboard.c @@ -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) {