Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752041AbdF3NFh (ORCPT ); Fri, 30 Jun 2017 09:05:37 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:36337 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751563AbdF3NEi (ORCPT ); Fri, 30 Jun 2017 09:04:38 -0400 Date: Fri, 30 Jun 2017 22:04:34 +0900 From: Stafford Horne To: "Pedro H. Penna" Cc: tglx@linutronix.de, jason@lakedaemon.net, marc.zyngier@arm.com, stefan.kristiansson@saunalahti.fi, jonas@southpole.se, LKML , Openrisc Subject: Re: [PATCH] irqchip: or1k-pic: Fix interrupt system. Message-ID: <20170630130434.GB2589@lianli.shorne-pla.net> References: <20170630113356.GA20194@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170630113356.GA20194@gmail.com> User-Agent: Mutt/1.8.0 (2017-02-23) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1270 Lines: 38 +CC Kernel List On Fri, Jun 30, 2017 at 08:33:56AM -0300, Pedro H. Penna wrote: > Usually, hardware implicitly acknowledges interruts when > reading them. However, if this is not the case, the IRQ > gets fired over and over again in the current implementation. > > This patch uses the right mask acknowledge function to handle the > aforementioned situation on or1k processors that interact with > such kind of hardware. > > Signed-off-by: Pedro H. Penna Acked-by: Stafford Horne I am ok to take this patch into my tree if no one objects. But if someone wants to take it through the drive tree I am fine too. > --- > drivers/irqchip/irq-or1k-pic.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/irqchip/irq-or1k-pic.c b/drivers/irqchip/irq-or1k-pic.c > index 6a9a3e7..dd9d5d1 100644 > --- a/drivers/irqchip/irq-or1k-pic.c > +++ b/drivers/irqchip/irq-or1k-pic.c > @@ -70,7 +70,7 @@ static struct or1k_pic_dev or1k_pic_level = { > .name = "or1k-PIC-level", > .irq_unmask = or1k_pic_unmask, > .irq_mask = or1k_pic_mask, > - .irq_mask_ack = or1k_pic_mask, > + .irq_mask_ack = or1k_pic_mask_ack, > }, > .handle = handle_level_irq, > .flags = IRQ_LEVEL | IRQ_NOPROBE, > -- > 2.7.4 >