Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1696048imj; Thu, 14 Feb 2019 10:27:47 -0800 (PST) X-Google-Smtp-Source: AHgI3Ib72vca6T0+GppuJMOlxL9UA0N5YRsvrkjZaxNeK+6ym5YB96r5tOQkhKWv8AhMsqGGduV5 X-Received: by 2002:a17:902:8c81:: with SMTP id t1mr5686378plo.107.1550168867859; Thu, 14 Feb 2019 10:27:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550168867; cv=none; d=google.com; s=arc-20160816; b=jy+Ir4Yx5r+VXDcTtrJm1n1cOJwhtH9F63e4KC2gyjkrIh2OA57pJf04mD4wJOYett z2FCsjquJKiv/PBphqa7lZRp/af8fl5+e+GbycxuHoYPjA6P41PTgOtNDtqCbwjoAstA /G0734QS+lO2KG3hHkCqTBYX9cl9UcEZgWA1sVudYLsjIoY+2/CiJri/4coDBio3iCbq cmO9WS3psdcIMdo/N/EPPndkdbc1FXHXARTyLlEBneFwIHJHCu7QIsQHCCi/seyWqvGN LKXCJVUGlyy+FUvD5KAodqD2PJvHXA1IvWT9IdTFjgbK1l2qlBGyaoogX3/Psh9Gb6jg ytEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:organization:user-agent :references:in-reply-to:subject:cc:to:from:message-id:date; bh=RfdIkoEQ8y6lcoAXuXDRBxShjYuFCogKjYQ4EapQcV4=; b=Pv9FwUQVtRQquFoJRdJ0YD5UEzg2A5m6Oj0js66ODiAsRpDMABC5jY89uDo55HQjoM nXzrnRWGPdd0RdahP+XceUhWolJ3G3vtKfkIwj7YlMR4S7qgmiavC6bd8kOVxMUzjxQO uDacEfrxoNCwvfpMV3UZBu4etsCD1VFiaf+uYEbzwwdt4XlFa8ER8dZT02V3ySz0rEBE ZGo6yK9WAEFvtVaWeLBdBn/7BPhCnsWI7vPzKChQ2uPrcj7CbjTrGvFZPhXjnLGhnekZ N7XG/EoCl3NWnjSPAjnnKSIsBsj7t8+ggWHp8VpKkOZ9w48dbrhJFBBA9T6P7lNjRx7o JByg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w6si3054300plp.429.2019.02.14.10.27.31; Thu, 14 Feb 2019 10:27:47 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2406816AbfBNKzV (ORCPT + 99 others); Thu, 14 Feb 2019 05:55:21 -0500 Received: from foss.arm.com ([217.140.101.70]:41334 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726989AbfBNKzV (ORCPT ); Thu, 14 Feb 2019 05:55:21 -0500 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 E7CEDEBD; Thu, 14 Feb 2019 02:55:20 -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 9EEE93F575; Thu, 14 Feb 2019 02:55:18 -0800 (PST) Date: Thu, 14 Feb 2019 10:55:15 +0000 Message-ID: <86o97eskq4.wl-marc.zyngier@arm.com> From: Marc Zyngier To: Sekhar Nori Cc: Bartosz Golaszewski , Kevin Hilman , Thomas Gleixner , Jason Cooper , David Lechner , , , Bartosz Golaszewski Subject: Re: [RESEND PATCH v2 17/33] ARM: davinci: aintc: move timer-specific irq_set_handler() out of irq.c In-Reply-To: References: <20190211122606.8662-1-brgl@bgdev.pl> <20190211122606.8662-18-brgl@bgdev.pl> <67127a57-3d1f-5cf4-efb8-f1a2a49b3a2a@arm.com> 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") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 12 Feb 2019 05:51:11 +0000, Sekhar Nori wrote: > > On 11/02/19 6:30 PM, Marc Zyngier wrote: > > On 11/02/2019 12:25, Bartosz Golaszewski wrote: > > >> + /* > >> + * 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); > >> + > > > > Now, the real question is: why isn't that set as part of the > > set_irq_type() callback, instead of hardcoding it in the platform? > > > > This is exactly the kind of information that should come as part of the > > DT or from the driver as one of the request_irq() flags. > > > > It would save quite a bit of boilerplate code. > > True, but I would keep this series feature/bug compatible with existing > code. Without that, tracking regression reports will be a nightmare. Its > a pretty major change already. > > We can (and should) fix this, but I prefer thats done as follow-up patch > after this series is merged. That way a revert is easy. And I'd rather see it done already, as a preliminary to this series. If I'm going to take 35 patches that are mostly churn, surely we can another couple to fix something that is a real bug. > BTW, I don't quite see which in-kernel module uses this interrupt. It > might be some out-of-tree code, or some code that since got removed from > kernel. Yet another reason to fix it now. Thanks, M. -- Jazz is not dead, it just smell funny.