From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754209Ab1KOIqb (ORCPT ); Tue, 15 Nov 2011 03:46:31 -0500 Received: from na3sys009aog103.obsmtp.com ([74.125.149.71]:45161 "EHLO na3sys009aog103.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754077Ab1KOIq0 (ORCPT ); Tue, 15 Nov 2011 03:46:26 -0500 From: Felipe Balbi To: Tony Lindgren Cc: Linux ARM Kernel Mailing List , Linux Kernel Mailing List , Linux OMAP Mailing List , Andrew Morton , Felipe Balbi Subject: [PATCH/RESEND #3 6/7] arm: omap: smartreflex: fix IRQ handling bug Date: Tue, 15 Nov 2011 10:46:04 +0200 Message-Id: <1321346765-16633-7-git-send-email-balbi@ti.com> X-Mailer: git-send-email 1.7.8.rc0 In-Reply-To: <1321346765-16633-1-git-send-email-balbi@ti.com> References: <1321346765-16633-1-git-send-email-balbi@ti.com> Organization: Texas Instruments\n Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org fix a bug which has been on this driver since it was added by the original commit 984aa6db which would never clear IRQSTATUS bits. Signed-off-by: Felipe Balbi --- arch/arm/mach-omap2/smartreflex.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-omap2/smartreflex.c b/arch/arm/mach-omap2/smartreflex.c index eb88b36..a5399df 100644 --- a/arch/arm/mach-omap2/smartreflex.c +++ b/arch/arm/mach-omap2/smartreflex.c @@ -156,7 +156,7 @@ static irqreturn_t sr_interrupt(int irq, void *data) break; case SR_TYPE_V2: /* Read the status bits */ - sr_read_reg(sr_info, IRQSTATUS); + status = sr_read_reg(sr_info, IRQSTATUS); /* Clear them by writing back */ sr_write_reg(sr_info, IRQSTATUS, status); -- 1.7.8.rc0