Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp3448987imj; Mon, 11 Feb 2019 21:52:43 -0800 (PST) X-Google-Smtp-Source: AHgI3Ia+m30BFdzz+zzSJW9uygNbqKgjtVJF9jy4yzQGB1Pr78eGYlcavnPFHO7+LRsk7s2mBtkF X-Received: by 2002:a63:2bc6:: with SMTP id r189mr2024527pgr.201.1549950763260; Mon, 11 Feb 2019 21:52:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549950763; cv=none; d=google.com; s=arc-20160816; b=C9Y8RfnvZZKuXl4DROVTwuQAngD3BJyJO3XDZ+D7jVr+yydOIriJSlfXB+pxox88hN AJaV7cmBnvZdkI4W7vDryTkbW9w5jXgp8mHroLv/UQRuaLemQnsWrPTk8IT791e2nZIL DJc2C5NbFO5LrNuuIofNSKpq6fQiikGLWeoKkyJ6mQMe0bM0QDbPbaLjbKMg2kaOoaD5 gnzEE6+C1ep/NgkQjhkVSrjIcTKneJKqDWLirpKIc2lisUHlypfE5a4W63wKN2keV52e VXRt0zvBpoOPjDzRxbTWDwSZ3evRSCotPy1FxWdStKN1+CNwEnxlOH1yFS36fU6al6Pm 7tKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=GGIZiQ3XvjF7PK7mffhRzev9r+oQlkwmOJ6C/s4RqK4=; b=y88au2Gt4AoNRI0jMvnNbs7RNvRUKCWmxhPtSw49gtNB99Y4Pr7sFKEngX+FlpZKhj S2NYt+SIceFhjgpMk6btsGDNh5FEpHfdwvygJXLj7DtzoSI9S7AfZ9eCB7LoejaKD20u qEyKaAAJrGsM1/8Cf78uurkzur1iDm3I/sppXr88PKS8tirK7bWEyZZvfMCtTEbt3LfQ ZW2ZBQNfaCB4ran5mWfPaqAlg/OBqBijEjrsT9NTFXGgQ93cFsiNV9R0KSqQnVbm6lyY uXyIriY0pjbWyaLCV76D+LFAQjBg0mxy475QoSklIc5eDAQao6CdHt3xDkzK+9NLTX6t 3tdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="gyPsA7e/"; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f69si10992780pgc.514.2019.02.11.21.52.24; Mon, 11 Feb 2019 21:52:43 -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; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="gyPsA7e/"; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726219AbfBLFwW (ORCPT + 99 others); Tue, 12 Feb 2019 00:52:22 -0500 Received: from fllv0016.ext.ti.com ([198.47.19.142]:49146 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725550AbfBLFwW (ORCPT ); Tue, 12 Feb 2019 00:52:22 -0500 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id x1C5pGxq099477; Mon, 11 Feb 2019 23:51:16 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1549950676; bh=GGIZiQ3XvjF7PK7mffhRzev9r+oQlkwmOJ6C/s4RqK4=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=gyPsA7e/usyp4fCB90sOFP5iGZ6/5V9wkljs39gmJkiuHmZ3p9J0XVLYnPkHF+8cf OTHJ8N0Ut+B9fGcUqdaRH0jH16XNK+YnZ3RLhCUepVbGp/blGYg7ISOtsKrUwGDoEQ C/7vQRCn8D9I1jxA38GMjqIBGdg9DJVyNsjue0fE= Received: from DFLE113.ent.ti.com (dfle113.ent.ti.com [10.64.6.34]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x1C5pG3X060272 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 11 Feb 2019 23:51:16 -0600 Received: from DFLE112.ent.ti.com (10.64.6.33) by DFLE113.ent.ti.com (10.64.6.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Mon, 11 Feb 2019 23:51:15 -0600 Received: from dlep33.itg.ti.com (157.170.170.75) by DFLE112.ent.ti.com (10.64.6.33) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1591.10 via Frontend Transport; Mon, 11 Feb 2019 23:51:16 -0600 Received: from [172.24.190.172] (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id x1C5pCfs026531; Mon, 11 Feb 2019 23:51:13 -0600 Subject: Re: [RESEND PATCH v2 17/33] ARM: davinci: aintc: move timer-specific irq_set_handler() out of irq.c To: Marc Zyngier , Bartosz Golaszewski , Kevin Hilman , Thomas Gleixner , Jason Cooper , David Lechner CC: , , Bartosz Golaszewski References: <20190211122606.8662-1-brgl@bgdev.pl> <20190211122606.8662-18-brgl@bgdev.pl> <67127a57-3d1f-5cf4-efb8-f1a2a49b3a2a@arm.com> From: Sekhar Nori Message-ID: Date: Tue, 12 Feb 2019 11:21:11 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <67127a57-3d1f-5cf4-efb8-f1a2a49b3a2a@arm.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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. Thanks, Sekhar