From patchwork Tue Aug 26 10:03:23 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marc Zyngier X-Patchwork-Id: 35961 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pd0-f199.google.com (mail-pd0-f199.google.com [209.85.192.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 7CA3C2054F for ; Tue, 26 Aug 2014 10:05:27 +0000 (UTC) Received: by mail-pd0-f199.google.com with SMTP id v10sf116787498pde.10 for ; Tue, 26 Aug 2014 03:05:26 -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=WVrZlZWAWCWJlk1fRuaAAOCgfOtxT3Ki4M6lY5Yjwag=; b=Nb11vlhp4/Pm3usYYg4YIWRTNXP2asE1HoZIwCsB4JlQQrNSk1yuaBkCrKyCvUv956 VZTDpHA42nNm1Awol2X2bQMyiJ4DRUCPAxG1b09TuPx6R7OK4o58McKx21vG4PcNYV3l EUeaHRCXYP2Wgi/6rRRaLWXrKFJMeFCKltu/36btRmoZYVmzekKTl+HDq35vfNBFyxBc X3diBTo2FalLs/mZRd1LIUo5fgXTN6G/1nesWQQuVUMR4Bgb/DpMHwPd8A+7YxqOOMET 6izC6FbMhJFLKTAwU/1heXZf+0A+uLJeaV/lAyef/T+15SEpDmsR+4WtfmbdHLcMISQe WkTg== X-Gm-Message-State: ALoCoQmtnE6j/630e1r09p+zW6KbHWwORZyLgqFjh9YrSemA5Tfulu9ZUMIi+KPOllJNOWCGshte X-Received: by 10.66.97.38 with SMTP id dx6mr542943pab.46.1409047524645; Tue, 26 Aug 2014 03:05:24 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.31.161 with SMTP id f30ls562713qgf.39.gmail; Tue, 26 Aug 2014 03:05:24 -0700 (PDT) X-Received: by 10.220.169.72 with SMTP id x8mr282395vcy.45.1409047524510; Tue, 26 Aug 2014 03:05:24 -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 eh8si1143054vdd.99.2014.08.26.03.05.24 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 26 Aug 2014 03:05:24 -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 lf12so16383141vcb.40 for ; Tue, 26 Aug 2014 03:05:24 -0700 (PDT) X-Received: by 10.220.186.196 with SMTP id ct4mr11562vcb.51.1409047524435; Tue, 26 Aug 2014 03:05:24 -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 uj3csp185029vcb; Tue, 26 Aug 2014 03:05:23 -0700 (PDT) X-Received: by 10.69.18.65 with SMTP id gk1mr35372091pbd.68.1409047523575; Tue, 26 Aug 2014 03:05:23 -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.21 for ; Tue, 26 Aug 2014 03:05:22 -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 S934520AbaHZKES (ORCPT + 26 others); Tue, 26 Aug 2014 06:04:18 -0400 Received: from fw-tnat.austin.arm.com ([217.140.110.23]:20736 "EHLO collaborate-mta1.arm.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S934418AbaHZKEO (ORCPT ); Tue, 26 Aug 2014 06:04:14 -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 2053113FB77; Tue, 26 Aug 2014 05:04:11 -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 08/26] irqchip: mmp: convert to handle_domain_irq Date: Tue, 26 Aug 2014 11:03:23 +0100 Message-Id: <1409047421-27649-9-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-mmp.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/irqchip/irq-mmp.c b/drivers/irqchip/irq-mmp.c index 1c3e2c9..c0da57b 100644 --- a/drivers/irqchip/irq-mmp.c +++ b/drivers/irqchip/irq-mmp.c @@ -196,26 +196,24 @@ static struct mmp_intc_conf mmp2_conf = { static void __exception_irq_entry mmp_handle_irq(struct pt_regs *regs) { - int irq, hwirq; + int hwirq; hwirq = readl_relaxed(mmp_icu_base + PJ1_INT_SEL); if (!(hwirq & SEL_INT_PENDING)) return; hwirq &= SEL_INT_NUM_MASK; - irq = irq_find_mapping(icu_data[0].domain, hwirq); - handle_IRQ(irq, regs); + handle_domain_irq(icu_data[0].domain, hwirq, regs); } static void __exception_irq_entry mmp2_handle_irq(struct pt_regs *regs) { - int irq, hwirq; + int hwirq; hwirq = readl_relaxed(mmp_icu_base + PJ4_INT_SEL); if (!(hwirq & SEL_INT_PENDING)) return; hwirq &= SEL_INT_NUM_MASK; - irq = irq_find_mapping(icu_data[0].domain, hwirq); - handle_IRQ(irq, regs); + handle_domain_irq(icu_data[0].domain, hwirq, regs); } /* MMP (ARMv5) */