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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 738F3C636D4 for ; Wed, 15 Feb 2023 11:16:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232704AbjBOLQY (ORCPT ); Wed, 15 Feb 2023 06:16:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230418AbjBOLQQ (ORCPT ); Wed, 15 Feb 2023 06:16:16 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8038935268; Wed, 15 Feb 2023 03:16:15 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 365F2B81F85; Wed, 15 Feb 2023 11:16:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D38C9C433D2; Wed, 15 Feb 2023 11:16:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1676459772; bh=+BXH8ieCj8Pu4T0zddhv+wWyHBLIaN8O9XXT235i2Lg=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=QBGWYEYBIrXyTQ2YsjQy9t63kjpQvfW9RNzqkvQotRpObT5TsYYiCK9DGtvkb59U7 +uOFWekYMsqMeOUeGxgbLHi1bl8FDnEWu0fzlmetOYziHBAgLEvOGEHA/pxOKMHLmu xBbdRGO8rp89yOMXMBSVxPTZ+2aIAa0qiKFWL6UDjv32pn4mRHsFF+My/hRCistxDT P5GN7vRnT3kTruhk4LzC/qyqri0qHZT7fDQGgN5i9ehwEXYshdApEZv+aS9GbS9hjZ 4lG5PAuZ4q3oIF4Tfg+m4ayABqCNu2OWCy28mZEz2oDZ+0A7ICP73Obmix0c7AAywz DWgwyYG679LXA== Received: from sofa.misterjones.org ([185.219.108.64] helo=goblin-girl.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1pSFli-00AZ88-Lp; Wed, 15 Feb 2023 11:16:10 +0000 Date: Wed, 15 Feb 2023 11:16:10 +0000 Message-ID: <86wn4jxjph.wl-maz@kernel.org> From: Marc Zyngier To: Linus Walleij Cc: Alexander Stein , Bartosz Golaszewski , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/1] gpio: vf610: make irq_chip immutable In-Reply-To: References: <20230214073638.571417-1-alexander.stein@ew.tq-group.com> 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/28.2 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: linus.walleij@linaro.org, alexander.stein@ew.tq-group.com, brgl@bgdev.pl, linux-gpio@vger.kernel.org, linux-kernel@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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 15 Feb 2023 10:19:28 +0000, Linus Walleij wrote: > > On Tue, Feb 14, 2023 at 8:36 AM Alexander Stein > wrote: > > > Since recently, the kernel is nagging about mutable irq_chips: > > > > "not an immutable chip, please consider fixing it!" > > > > Drop the unneeded copy, flag it as IRQCHIP_IMMUTABLE, add the new > > helper functions and call the appropriate gpiolib functions. > > > > Signed-off-by: Alexander Stein > > Looks good to me, CC to Marc Z. Looks wrong to me. This is missing the explicit callbacks into gpiolib so that it knows what gets enabled/disabled on mask/unmask. > > Reviewed-by: Linus Walleij > > We fixed quite a few of these now, Marc do you have an idea about > how much we have left until we can make immutable the default? I haven't tracked that, and making it the default would probably mean getting rid of the code that patches the irqchip structures. I'd say that once -rc1 is out, we replace the polite nag with something nastier (WARN_ON() of some sort), and push that into -next. Leave the warning in place for a couple of releases (until the next LTS), and then drop the patching code. The not-so-nice part is that that drivers that haven't been fixed will break silently. The good side is that these drivers will not have been touched over 2 LTS releases, and are thus most likely abandonware. Thanks, M. -- Without deviation from the norm, progress is not possible.