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 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5FF5EC433F5 for ; Wed, 20 Oct 2021 08:26:26 +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 224F5611C6 for ; Wed, 20 Oct 2021 08:26:26 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 224F5611C6 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Subject:Cc: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=ad23+iAHn2Yqkwpy0b5hp4F0b7TJ3W/1As50FlwF1zo=; b=pEmlZc7AQij9AV 9cLuBzG7Sew1ARURNA5uHsxH4ppbZrYmn8coYymOCAXkm0nK9UTisnVccCoIjsXrsjh/66X3sC/OI K5wLUP5cO0v8zMSlCg32hMNyt01BqGHDT7bGrQJN2w6UPqrcVLVbGYlscQ9hALyqkZNLuOIuaZrmj eTWFdXONT75GwDSfpIO9yzeaLsQnoshVYo8CTkMLg5kw5goRgBDjutYIuWgMKGsXpU1vfhhJ/dt4S KtKuzRa9qldqPE34I6GW2GPVg0WEpltSYt5kuzqkKF8KydExijxVSF3ai6Vr4Jpn9BxvUpvdOEoMF E7PRsdY4gWzw3F/Vb9Zg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1md6uA-003pRW-ER; Wed, 20 Oct 2021 08:24:58 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1md6u6-003pQc-75 for linux-arm-kernel@lists.infradead.org; Wed, 20 Oct 2021 08:24:55 +0000 Received: from disco-boy.misterjones.org (disco-boy.misterjones.org [51.254.78.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A0A3D611C6; Wed, 20 Oct 2021 08:24:53 +0000 (UTC) Received: from sofa.misterjones.org ([185.219.108.64] helo=why.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1md6u3-000Nya-9Z; Wed, 20 Oct 2021 09:24:51 +0100 Date: Wed, 20 Oct 2021 09:24:50 +0100 Message-ID: <87tuhcnlwt.wl-maz@kernel.org> From: Marc Zyngier To: Rob Herring Cc: Florian Fainelli , "linux-kernel@vger.kernel.org" , Ray Jui , Scott Branden , "maintainer:BROADCOM BCM281XX/BCM11XXX/BCM216XX ARM ARCHITE..." , Russell King , Catalin Marinas , Will Deacon , Thomas Bogendoerfer , Thomas Gleixner , Frank Rowand , "moderated list:ARM SUB-ARCHITECTURES" , "open list:MIPS" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE" Subject: Re: [PATCH v4 09/14] irqchip: Provide platform_device to of_irq_init_cb_t In-Reply-To: References: <20211009022023.3796472-1-f.fainelli@gmail.com> <20211009022023.3796472-10-f.fainelli@gmail.com> <871r4gvggb.wl-maz@kernel.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/27.1 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: robh@kernel.org, f.fainelli@gmail.com, linux-kernel@vger.kernel.org, rjui@broadcom.com, sbranden@broadcom.com, bcm-kernel-feedback-list@broadcom.com, linux@armlinux.org.uk, catalin.marinas@arm.com, will@kernel.org, tsbogend@alpha.franken.de, tglx@linutronix.de, frowand.list@gmail.com, linux-arm-kernel@lists.infradead.org, linux-mips@vger.kernel.org, devicetree@vger.kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211020_012454_313748_F5E6801A X-CRM114-Status: GOOD ( 21.94 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, 19 Oct 2021 23:23:52 +0100, Rob Herring wrote: > > On Tue, Oct 19, 2021 at 4:43 PM Marc Zyngier wrote: > > > > diff --git a/include/linux/irqchip.h b/include/linux/irqchip.h > > index ccf32758ea85..146a9d80a6a2 100644 > > --- a/include/linux/irqchip.h > > +++ b/include/linux/irqchip.h > > @@ -33,7 +33,15 @@ extern int platform_irqchip_probe(struct platform_device *pdev); > > #define IRQCHIP_PLATFORM_DRIVER_BEGIN(drv_name) \ > > static const struct of_device_id drv_name##_irqchip_match_table[] = { > > > > -#define IRQCHIP_MATCH(compat, fn) { .compatible = compat, .data = fn }, > > +/* Undefined on purpose */ > > +int typecheck_irq_init_cb(struct device_node *, struct device_node *, > > + struct platform_device *); > > + > > +#define typecheck_irq_init_cb(fn) \ > > + __typecheck(typecheck_irq_init_cb, fn) ? fn : fn > > That's nice! Shouldn't it also be used for IRQCHIP_DECLARE? Absolutely. And enabling this shows that changing of_irq_init_cb_t breaks *all users* of IRQCHIP_DECLARE(). Not an acceptable outcome when we're at -rc5. Why can't the relevant drivers use of_find_device_by_node() instead? That would allow us to keep the status-quo on of_irq_init_cb_t. Thanks, M. -- Without deviation from the norm, progress is not possible. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel