From patchwork Thu Jan 23 22:38:05 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Hesselbarth X-Patchwork-Id: 3532301 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 0AD0CC02DC for ; Thu, 23 Jan 2014 22:40:34 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 30834201CE for ; Thu, 23 Jan 2014 22:40:33 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2AA06201C8 for ; Thu, 23 Jan 2014 22:40:32 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1W6Svy-00082W-9z; Thu, 23 Jan 2014 22:39:39 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1W6Svc-0000IZ-Bn; Thu, 23 Jan 2014 22:39:16 +0000 Received: from mail-ea0-f179.google.com ([209.85.215.179]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1W6SvZ-0000G6-Nz for linux-arm-kernel@lists.infradead.org; Thu, 23 Jan 2014 22:39:14 +0000 Received: by mail-ea0-f179.google.com with SMTP id q10so572359ead.10 for ; Thu, 23 Jan 2014 14:38:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=5sMxbj4VjcQhZSxn8iTC77Cbvv8ksoyJ6t6E17JeLbs=; b=gajyOkiKE1GFOMKdqE+HdN+jFE+YcoXEAfXEi8CAbjBMJZ3QtsMeirGMs3KtO1BUB8 DKHoZ8psntT+/nfYIkqEwGGalxwN+lULu7Y/xGfJUKmDdpZFFmyQltJQ7TSK8vmQow+v X7aD1jSutGaAuZpAH29xIjL8PkkhSvxGrCXEn3/j8rYd8JxlCTozYUctZ/sfx/qtPLTp TJI7oSaxWZ4CbpRaLe9K3Qp0TSPP7ZWIh3SwW7mi7txDXUU5kRAzegUeyKgU8q4D3sUx abs910qVHGsNz4kh493Qbdvg7emgyq3sFCBRffhuMCDlMuYLxdmr7zVvHTvoZP1TdZk/ 5qyw== X-Received: by 10.15.32.73 with SMTP id z49mr9481067eeu.27.1390516694918; Thu, 23 Jan 2014 14:38:14 -0800 (PST) Received: from topkick.lan (dslc-082-083-251-183.pools.arcor-ip.net. [82.83.251.183]) by mx.google.com with ESMTPSA id v7sm43861120eel.2.2014.01.23.14.38.12 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Jan 2014 14:38:13 -0800 (PST) From: Sebastian Hesselbarth To: Sebastian Hesselbarth Subject: [PATCH 2/3] irqchip: orion: use handle_edge_irq on bridge irqs Date: Thu, 23 Jan 2014 23:38:05 +0100 Message-Id: <1390516686-2224-3-git-send-email-sebastian.hesselbarth@gmail.com> In-Reply-To: <1390516686-2224-1-git-send-email-sebastian.hesselbarth@gmail.com> References: <1390516686-2224-1-git-send-email-sebastian.hesselbarth@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140123_173913_878481_E52298A1 X-CRM114-Status: GOOD ( 11.06 ) X-Spam-Score: -2.7 (--) Cc: Andrew Lunn , Jason Cooper , linux-kernel@vger.kernel.org, Jason Gunthorpe , Ezequiel Garcia , Gregory Clement , Thomas Gleixner , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Bridge irqs are edge-triggered, i.e. they get asserted on low-to-high transitions and not on the level of the downstream interrupt line. This replaces handle_level_irq by the more appropriate handle_edge_irq. Signed-off-by: Sebastian Hesselbarth --- Cc: Thomas Gleixner Cc: Jason Cooper Cc: Andrew Lunn Cc: Gregory Clement Cc: Jason Gunthorpe Cc: Ezequiel Garcia Cc: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org --- drivers/irqchip/irq-orion.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-orion.c b/drivers/irqchip/irq-orion.c index 4137c3d15284..1f636f719065 100644 --- a/drivers/irqchip/irq-orion.c +++ b/drivers/irqchip/irq-orion.c @@ -143,7 +143,7 @@ static int __init orion_bridge_irq_init(struct device_node *np, } ret = irq_alloc_domain_generic_chips(domain, nrirqs, 1, np->name, - handle_level_irq, clr, 0, IRQ_GC_INIT_MASK_CACHE); + handle_edge_irq, clr, 0, IRQ_GC_INIT_MASK_CACHE); if (ret) { pr_err("%s: unable to alloc irq domain gc\n", np->name); return ret;