From patchwork Tue Aug 26 10:03:36 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marc Zyngier X-Patchwork-Id: 35971 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pd0-f197.google.com (mail-pd0-f197.google.com [209.85.192.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 7C21920565 for ; Tue, 26 Aug 2014 10:05:42 +0000 (UTC) Received: by mail-pd0-f197.google.com with SMTP id y10sf116098914pdj.8 for ; Tue, 26 Aug 2014 03:05:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=bcZAlxNElzqsAPR8BnHOjEF2ZheDQma5R8gV75zNMKE=; b=WL4HC8SISoiAxgpNPifTUTRX1tC+UYh078zH5fQvQILRLgzaDRa0tqEg4gN6X2uFhH eb6ooaEklxCN93NqcG0kPnXk/IM2hh9bfWXqJrO99Njn3hrxOQDSmO74O+5fdGAhChWH II0+kYzp1BeVu0MPUcnpADbzppdNiWVzt1OdqJUDusYmidshgxUezc0xZBE0ICfum/NJ Q4wHecd5lhxPhsQN1993/R/2KrkcGUauZWqTe27jeq4NQjOsZnT+mk66a1VQkQwYIMj/ MsX+t/MU+LyCmCqXj9ESZhOMruqdHgt2HCFg+/nsSCezSvePfYfHwpLjGZjzeeceiq9c WCGQ== X-Gm-Message-State: ALoCoQm/+NDPo+bTW5GXGs4RkKz0vF2kIl7rvIk9JAM3KfHZGlXjRnENDhdKbv22krNMawQiiR6P X-Received: by 10.70.41.230 with SMTP id i6mr17511682pdl.2.1409047540550; Tue, 26 Aug 2014 03:05:40 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.25.148 with SMTP id 20ls2416683qgt.86.gmail; Tue, 26 Aug 2014 03:05:40 -0700 (PDT) X-Received: by 10.221.6.201 with SMTP id ol9mr23033200vcb.2.1409047540451; Tue, 26 Aug 2014 03:05:40 -0700 (PDT) Received: from mail-vc0-f181.google.com (mail-vc0-f181.google.com [209.85.220.181]) by mx.google.com with ESMTPS id jw20si1170085vdb.52.2014.08.26.03.05.40 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 26 Aug 2014 03:05:40 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.181 as permitted sender) client-ip=209.85.220.181; Received: by mail-vc0-f181.google.com with SMTP id lf12so16266582vcb.26 for ; Tue, 26 Aug 2014 03:05:40 -0700 (PDT) X-Received: by 10.53.0.164 with SMTP id az4mr571104vdd.52.1409047540380; Tue, 26 Aug 2014 03:05:40 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.45.67 with SMTP id uj3csp185059vcb; Tue, 26 Aug 2014 03:05:39 -0700 (PDT) X-Received: by 10.68.65.36 with SMTP id u4mr18866149pbs.127.1409047539477; Tue, 26 Aug 2014 03:05:39 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ti10si3191070pab.206.2014.08.26.03.05.38 for ; Tue, 26 Aug 2014 03:05:39 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934702AbaHZKFG (ORCPT + 26 others); Tue, 26 Aug 2014 06:05:06 -0400 Received: from fw-tnat.austin.arm.com ([217.140.110.23]:21162 "EHLO collaborate-mta1.arm.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S934684AbaHZKFB (ORCPT ); Tue, 26 Aug 2014 06:05:01 -0400 Received: from e102391-lin.cambridge.arm.com (e102391-lin.cambridge.arm.com [10.1.209.143]) by collaborate-mta1.arm.com (Postfix) with ESMTP id DE16513FB6D; Tue, 26 Aug 2014 05:04:57 -0500 (CDT) From: Marc Zyngier To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, linux@lists.openrisc.net Cc: linux@arm.linux.org.uk, shawn.guo@freescale.com, kernel@pengutronix.de, tony@atomide.com, catalin.marinas@arm.com, will.deacon@arm.com, jonas@southpole.se, tglx@linutronix.de, jason@lakedaemon.net, shc_work@mail.ru, baohua@kernel.org, maxime.ripard@free-electrons.com, marc.zyngier@arm.com, khilman@linaro.org, sboyd@codeaurora.org, lorenzo.pieralisi@arm.com, larry.bassel@linaro.org, mark.rutland@arm.com, sudeep.holla@arm.com, stefan.kristiansson@saunalahti.fi, vkale@apm.com, schwidefsky@de.ibm.com Subject: [PATCH v2 21/26] irqchip: or1k-pic: convert to handle_domain_irq Date: Tue, 26 Aug 2014 11:03:36 +0100 Message-Id: <1409047421-27649-22-git-send-email-marc.zyngier@arm.com> X-Mailer: git-send-email 2.0.4 In-Reply-To: <1409047421-27649-1-git-send-email-marc.zyngier@arm.com> References: <1409047421-27649-1-git-send-email-marc.zyngier@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: marc.zyngier@arm.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.181 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Use the new handle_domain_irq method to handle interrupts. Signed-off-by: Marc Zyngier --- drivers/irqchip/irq-or1k-pic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/irqchip/irq-or1k-pic.c b/drivers/irqchip/irq-or1k-pic.c index 17ff033..e93d079 100644 --- a/drivers/irqchip/irq-or1k-pic.c +++ b/drivers/irqchip/irq-or1k-pic.c @@ -113,7 +113,7 @@ static inline int pic_get_irq(int first) else hwirq = hwirq + first - 1; - return irq_find_mapping(root_domain, hwirq); + return hwirq; } static void or1k_pic_handle_irq(struct pt_regs *regs) @@ -121,7 +121,7 @@ static void or1k_pic_handle_irq(struct pt_regs *regs) int irq = -1; while ((irq = pic_get_irq(irq + 1)) != NO_IRQ) - handle_IRQ(irq, regs); + handle_domain_irq(root_domain, irq, regs); } static int or1k_map(struct irq_domain *d, unsigned int irq, irq_hw_number_t hw)