From patchwork Tue Jul 8 13:10:34 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marc Zyngier X-Patchwork-Id: 33217 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ve0-f198.google.com (mail-ve0-f198.google.com [209.85.128.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 7010520969 for ; Tue, 8 Jul 2014 13:21:29 +0000 (UTC) Received: by mail-ve0-f198.google.com with SMTP id db11sf22554520veb.9 for ; Tue, 08 Jul 2014 06:21:29 -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=A3jAaA2YQB1NHqJALLLSl/1BRREYQHaXC/I6NnG4Fiw=; b=NV0wK9vaCljEXZMkQh3K4C2D3/ZCFvPnvdojhGlEotNA+3jTMmAfrw4l8X/of6ZChV hlojs3ETZ5jsew+zK7QHc/mEUZLN31rb5uMfdpDfzalDtVmS2VGHgs+ZnxGsIqttga9L dczijRXv008UfA/UXHNRjgGYNJcw9UJHYd7NTl90gQWy3a4gwzk2/IC0QuYsxBHmqL0Z KGrBuvMykJ5DfXCnPMqnYP0b6jzK53Ltlhw+YYoVZZM5ZNO9ez2G27lpUhpDZaCWOzil h395uziXTP94UEwhiVfxIHPkl4mQT1gART5y5IlDZIX3jNVzE3mQeuVEuj1jzOiQoYH3 5z+Q== X-Gm-Message-State: ALoCoQk8YjNWdbX/YZXIN6zI1hJrsjBm5tjjgcRLEo7N/Fz3+46hpPAPpeUDDL17+g/VulAubYxi X-Received: by 10.236.142.20 with SMTP id h20mr14578466yhj.12.1404825689273; Tue, 08 Jul 2014 06:21:29 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.38.114 with SMTP id s105ls2174823qgs.64.gmail; Tue, 08 Jul 2014 06:21:29 -0700 (PDT) X-Received: by 10.58.185.227 with SMTP id ff3mr329378vec.45.1404825689173; Tue, 08 Jul 2014 06:21:29 -0700 (PDT) Received: from mail-ve0-f176.google.com (mail-ve0-f176.google.com [209.85.128.176]) by mx.google.com with ESMTPS id om8si5113475vcb.63.2014.07.08.06.21.29 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 08 Jul 2014 06:21:29 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.176 as permitted sender) client-ip=209.85.128.176; Received: by mail-ve0-f176.google.com with SMTP id us18so1000235veb.7 for ; Tue, 08 Jul 2014 06:21:29 -0700 (PDT) X-Received: by 10.58.112.65 with SMTP id io1mr108370veb.61.1404825689085; Tue, 08 Jul 2014 06:21:29 -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.37.5 with SMTP id tc5csp770056vcb; Tue, 8 Jul 2014 06:21:28 -0700 (PDT) X-Received: by 10.70.8.132 with SMTP id r4mr5137412pda.35.1404825688234; Tue, 08 Jul 2014 06:21:28 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id mo2si43465298pbc.110.2014.07.08.06.21.24; Tue, 08 Jul 2014 06:21:24 -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 S1755044AbaGHNVP (ORCPT + 27 others); Tue, 8 Jul 2014 09:21:15 -0400 Received: from inca-roads.misterjones.org ([213.251.177.50]:33434 "EHLO inca-roads.misterjones.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754776AbaGHNVN (ORCPT ); Tue, 8 Jul 2014 09:21:13 -0400 X-Greylist: delayed 622 seconds by postgrey-1.27 at vger.kernel.org; Tue, 08 Jul 2014 09:21:13 EDT Received: from [176.25.195.83] (helo=why.wild-wind.fr.eu.org) by cheepnis.misterjones.org with esmtpsa (TLSv1.2:AES128-SHA256:128) (Exim 4.80) (envelope-from ) id 1X4VAb-0006Ke-Li; Tue, 08 Jul 2014 15:10:53 +0200 From: Marc Zyngier To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Russell King , Catalin Marinas , Will Deacon , Thomas Gleixner , Jason Cooper , Alexander Shiyan , Barry Song , Maxime Ripard , Kevin Hilman , Daniel Lezcano , Lorenzo Pieralisi , Larry Bassel , Mark Rutland , Sudeep Holla Subject: [PATCH 11/15] irqchip: sun4i: convert to handle_domain_irq Date: Tue, 8 Jul 2014 14:10:34 +0100 Message-Id: <1404825038-547-12-git-send-email-marc.zyngier@arm.com> X-Mailer: git-send-email 2.0.0 In-Reply-To: <1404825038-547-1-git-send-email-marc.zyngier@arm.com> References: <1404825038-547-1-git-send-email-marc.zyngier@arm.com> X-SA-Exim-Connect-IP: 176.25.195.83 X-SA-Exim-Rcpt-To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux@arm.linux.org.uk, catalin.marinas@arm.com, will.deacon@arm.com, tglx@linutronix.de, jason@lakedaemon.net, shc_work@mail.ru, baohua@kernel.org, maxime.ripard@free-electrons.com, khilman@linaro.org, daniel.lezcano@linaro.org, lorenzo.pieralisi@arm.com, larry.bassel@linaro.org, mark.rutland@arm.com, sudeep.holla@arm.com X-SA-Exim-Mail-From: marc.zyngier@arm.com X-SA-Exim-Scanned: No (on cheepnis.misterjones.org); SAEximRunCond expanded to false 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.128.176 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-sun4i.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/irqchip/irq-sun4i.c b/drivers/irqchip/irq-sun4i.c index 6fcef4a..64155b6 100644 --- a/drivers/irqchip/irq-sun4i.c +++ b/drivers/irqchip/irq-sun4i.c @@ -136,7 +136,7 @@ IRQCHIP_DECLARE(allwinner_sun4i_ic, "allwinner,sun4i-a10-ic", sun4i_of_init); static void __exception_irq_entry sun4i_handle_irq(struct pt_regs *regs) { - u32 irq, hwirq; + u32 hwirq; /* * hwirq == 0 can mean one of 3 things: @@ -154,8 +154,7 @@ static void __exception_irq_entry sun4i_handle_irq(struct pt_regs *regs) return; do { - irq = irq_find_mapping(sun4i_irq_domain, hwirq); - handle_IRQ(irq, regs); + handle_domain_irq(sun4i_irq_domain, hwirq, regs); hwirq = readl(sun4i_irq_base + SUN4I_IRQ_VECTOR_REG) >> 2; } while (hwirq != 0); }