From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 97936C43381 for ; Thu, 14 Feb 2019 10:57:42 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 68642222D2 for ; Thu, 14 Feb 2019 10:57:42 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="YaAUOmQN" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 68642222D2 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Subject:To:From:Message-ID:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=yYbbn15PyopQbsPJANsrFcNpwrNynk+KQl+dkIWpaw4=; b=YaAUOmQNyWJK3v wSlqle45aDeVpBj7T+tV+0ljXEEaa/iMwmoIwJ7dcZZhDZBlaFe6NTIL6hgtSSKBoG2puUClBbM/F FWquRrp0mKvsayiYM/gQ8oR0SNmQyzh9qSkkdTu+4zAdgdeVd4QN+5SsKr02aWcYx0Sl4noRpRUIo usP2oLa+MBzd8I6bGtkR8zmvx87Pn5V7k3x6ylyERR2MeVjbhZS5DR8T+r110DwLiyPpO4KJomroC x71KM/Rr9yAf8OZhjZ/AEsgnT3I0VI0V52vbkUdSv+eVW3qPk7/8EKG0vyCERTzIENl89IZSKf6LA WgUqhaKi5MpOU3KPsnSw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1guEi3-0003SC-Iy; Thu, 14 Feb 2019 10:57:39 +0000 Received: from foss.arm.com ([217.140.101.70]) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1guEhx-0003Rl-W7 for linux-arm-kernel@lists.infradead.org; Thu, 14 Feb 2019 10:57:37 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 732A8EBD; Thu, 14 Feb 2019 02:57:33 -0800 (PST) Received: from big-swifty.misterjones.org (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 6BE9D3F575; Thu, 14 Feb 2019 02:57:30 -0800 (PST) Date: Thu, 14 Feb 2019 10:57:27 +0000 Message-ID: <86mumyskmg.wl-marc.zyngier@arm.com> From: Marc Zyngier To: Bartosz Golaszewski Subject: Re: [PATCH v3 20/37] ARM: davinci: aintc: move timer-specific irq_set_handler() out of irq.c In-Reply-To: <20190212103835.7768-21-brgl@bgdev.pl> References: <20190212103835.7768-1-brgl@bgdev.pl> <20190212103835.7768-21-brgl@bgdev.pl> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 EasyPG/1.0.0 Emacs/25.1 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) Organization: ARM Ltd MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190214_025736_219888_FE47CEB0 X-CRM114-Status: GOOD ( 19.66 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: David Lechner , Kevin Hilman , Sekhar Nori , linux-kernel@vger.kernel.org, Bartosz Golaszewski , Thomas Gleixner , linux-arm-kernel@lists.infradead.org, Jason Cooper Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, 12 Feb 2019 10:38:18 +0000, Bartosz Golaszewski wrote: > > From: Bartosz Golaszewski > > I've been unable to figure out exactly why, but it seems that the > IRQ_TINT1_TINT34 interrupt for timer 1 needs to be handled as a > level irq, not edge like all others. > > Let's move the handler setup out of the aintc driver where it's lived > since the beginning and into the dm* SoC-specific files where it > belongs. > > Signed-off-by: Bartosz Golaszewski > --- > arch/arm/mach-davinci/dm355.c | 8 ++++++++ > arch/arm/mach-davinci/dm365.c | 8 ++++++++ > arch/arm/mach-davinci/dm644x.c | 8 ++++++++ > arch/arm/mach-davinci/dm646x.c | 8 ++++++++ > arch/arm/mach-davinci/irq.c | 3 --- > 5 files changed, 32 insertions(+), 3 deletions(-) > > diff --git a/arch/arm/mach-davinci/dm355.c b/arch/arm/mach-davinci/dm355.c > index c7cd765114af..a732f2ea1d9a 100644 > --- a/arch/arm/mach-davinci/dm355.c > +++ b/arch/arm/mach-davinci/dm355.c > @@ -15,6 +15,7 @@ > #include > #include > #include > +#include > #include > #include > #include > @@ -744,6 +745,13 @@ void __init dm355_init_time(void) > psc = ioremap(DAVINCI_PWR_SLEEP_CNTRL_BASE, SZ_4K); > dm355_psc_init(NULL, psc); > > + /* > + * Nobody knows why anymore, but this interrupt has been handled as > + * a level irq from the very beginning of davinci support in mainline > + * linux. > + */ > + irq_set_handler(DAVINCI_INTC_IRQ(IRQ_TINT1_TINT34), handle_level_irq); > + I've said it on v2, I'm repeating it on v3. There is no point in duplicating this pointless hack on and on again. If there is a driver using this interrupt, move the setup there, and fix the irq_set_type callback. If nothing is using it, remove it altogether. Thanks, M. -- Jazz is not dead, it just smell funny. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel