From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756232Ab0LEXK0 (ORCPT ); Sun, 5 Dec 2010 18:10:26 -0500 Received: from smtp-out.google.com ([74.125.121.35]:58640 "EHLO smtp-out.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754795Ab0LEXKU (ORCPT ); Sun, 5 Dec 2010 18:10:20 -0500 From: Colin Cross To: linux-tegra@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, Colin Cross , Erik Gilling , Olof Johansson , Russell King , linux-kernel@vger.kernel.org Subject: [PATCH 15/21] ARM: tegra: irq: Implement retrigger Date: Sun, 5 Dec 2010 15:09:02 -0800 Message-Id: <1291590548-7341-16-git-send-email-ccross@android.com> X-Mailer: git-send-email 1.7.3.1 In-Reply-To: <1291590548-7341-1-git-send-email-ccross@android.com> References: <1291590548-7341-1-git-send-email-ccross@android.com> X-System-Of-Record: true Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Colin Cross --- arch/arm/mach-tegra/irq.c | 15 ++++++++++++++- 1 files changed, 14 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-tegra/irq.c b/arch/arm/mach-tegra/irq.c index 8f0ddc6..458f9c8 100644 --- a/arch/arm/mach-tegra/irq.c +++ b/arch/arm/mach-tegra/irq.c @@ -208,9 +208,21 @@ static int tegra_set_type(unsigned int irq, unsigned int flow_type) return 0; } +static void tegra_ack(unsigned int irq) +{ + tegra_legacy_force_irq_clr(irq); + gic_ack_irq(irq); +} + +static int tegra_retrigger(unsigned int irq) +{ + tegra_legacy_force_irq_set(irq); + return 1; +} + static struct irq_chip tegra_irq = { .name = "PPI", - .ack = gic_ack_irq, + .ack = tegra_ack, .mask = tegra_mask, .unmask = tegra_unmask, .set_wake = tegra_set_wake, @@ -218,6 +230,7 @@ static struct irq_chip tegra_irq = { #ifdef CONFIG_SMP .set_affinity = gic_set_cpu, #endif + .retrigger = tegra_retrigger, }; void __init tegra_init_irq(void) -- 1.7.3.1