Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1613269lqm; Fri, 3 May 2024 00:20:24 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWF7NhQFPzh3iRxbvNEFA4w4trflSdRvFqfmC8jpF2KaowTBr5l/ZC4Ccv4QAY4OT1smOlA8jzUX4nZDxfqNkkG2+ueprUCRCmlVVaUaA== X-Google-Smtp-Source: AGHT+IE0wTVME7fm0eOLftecxgPU5W/hA7wG86DwOKu2wIg3EROFyz2DNB1dICdttc/ihT5kD5ME X-Received: by 2002:a05:6214:234b:b0:6a0:cd6b:4149 with SMTP id hu11-20020a056214234b00b006a0cd6b4149mr1947042qvb.1.1714720824431; Fri, 03 May 2024 00:20:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714720824; cv=pass; d=google.com; s=arc-20160816; b=J1PQITtpP99LvbgQqJ1fRLMJal5W3uF/j4h5rtpn5ppNzFW6+5Xcv2Wa6YZ2CerEG8 lPJpWyL5P0Iban5M3wfp7a05bCQhnrO7VAm1ikrwCd/4Bd+1KXWSQPOnmaaO9h39YXPR m3SQuRv/0ewBhyMvCQAo21F3kWL0kkzGSdVCLEIvIM1R/ay6NWY13mzXtfMlyOSzdjDE jFL+5+/mJiBQPKaFQVZXU5MwqiDCXmmwRg7PUJw/YHZn6ihaDBn0YaCFUsA8zIoUT4yX JYcIK6OwiigeKMk7nsGjW0mH7DHwKM49j1UNiMzqsLTXgq7lB1FfC+960TND40Y0MtOh +gZg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=9wIaPeFAaUloh+tV0Kf/Zmc8dIfcbAIB89NynZIAYBA=; fh=2DprVZqmQzv8yPoqxlj7rDow+ntiYeesJWtQD7+3+eY=; b=zGneNhKdidSWD+SMDyeEBbeGuoqvpoBiQr9iIxVtBMzoX5x920MnctONdzBVNvtn4V ESTjISyEOyAtXv4JCz4VlZ8HnJAD4fxv1Lo5+GoTMP/+buXRBfvWq09ltb6z8mI3f3ab 3GQRGCjm1Q8sSAEv9LiFQAbvMtRTL5KH+VUwZWXHP8jr582sgrWnwHZvqNegX1FasTzY m1h+2tWYSbW1aLdxgY3336Hh/tfvrZV3joAb60yv2A9ZXQHvNwHGGI1YjD0eUm59+OWy u1SYlIy9Ydk+tg+iUZ3AYovjxMSkGOmjFBXQSO24hjmkw41yytpEUxezBWBisV0aYcfO yBQw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=K3NDGRMR; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-167310-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167310-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id jk14-20020ad45d4e000000b006a0c76580bfsi2689432qvb.386.2024.05.03.00.20.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 00:20:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-167310-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=K3NDGRMR; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-167310-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167310-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 29FE11C217B9 for ; Fri, 3 May 2024 07:20:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3AAA9146D4D; Fri, 3 May 2024 07:20:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="K3NDGRMR" Received: from mail-yb1-f179.google.com (mail-yb1-f179.google.com [209.85.219.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DB271146A6F for ; Fri, 3 May 2024 07:20:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714720812; cv=none; b=lMSHS7nDi0gYj5qJ8uBCodJhcYGm5xlH7sSq0MYj093keEh2pQlZkF2qZilLchi8RUhSn4fsdygZYhH7afFAk694bVsMaJiB2BKUQ0WkJbauPIDIrnKTPYY26JiFRrnXNBaTWSFz/V1P1xPig3yLqvaESMl1QP9yygmSU2whO1k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714720812; c=relaxed/simple; bh=9wIaPeFAaUloh+tV0Kf/Zmc8dIfcbAIB89NynZIAYBA=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=iyuJYHD343vVV1DoJEvZ7QRGA+SFprsrQRPIBCfWt0y4b3OfcBpz1vQCXVe+xwpnzsYoJWgc1/lT8kP5LbgaBWiv/zyO2SKYi5vrkRH+zu3OQiyET0RNFw1NSleO55qW4AmVB4mDsfXaA4NTiXwtqCSnt2lZDXeCNBpqROpn/us= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=K3NDGRMR; arc=none smtp.client-ip=209.85.219.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-yb1-f179.google.com with SMTP id 3f1490d57ef6-de60d05adafso4555600276.2 for ; Fri, 03 May 2024 00:20:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1714720810; x=1715325610; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=9wIaPeFAaUloh+tV0Kf/Zmc8dIfcbAIB89NynZIAYBA=; b=K3NDGRMRh175rj4pKMzS8Pf/zz8LzbdOk+IvF4C4dlp0pUVg9xsOaKWv6pBo9BkO4o /aU+FPMulD6/ni4e916Lmrt/EhYv3VW7EWQCYMv5MCNEJDCiGOw7Omri5Jr2zkotEBnE RFRFnzsWPoS3HlN2y5UHdPKGF/cAw8pCUg+IFvTUdgStG+ed6AXYAzm0KY6jSJXd+HRh W6tlgTIKg8b+AkMSZ+tEUTsEtrGx+zukPxEta+dKeOdwOfLigEKdEHuB6Fyb+GJYdfxS ASjD7VSAeZt/6UMmrxc+DeHAeFveVGJPSRqo7i4hgDRJbo45CeY+QR5AN2PfGp+R/Mcx 9HSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714720810; x=1715325610; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=9wIaPeFAaUloh+tV0Kf/Zmc8dIfcbAIB89NynZIAYBA=; b=r5LZYrLX4V64YTdq2BjwWcM14PSsdhnduoadCFGndxnNnHAd1YxIVVCH/QvI7K2eP/ 4X1LsVvxSWE9UyMNXgHhAIlBfVxFqrixS3slymy3yBz5zvH0DNnvlUWeXKg9vPwLhdRa NqRRHJLJz1zaQ+HL8NNQ0/skWxtfabhgRtSSY8kGnsqN0N2KreoD7CYF3x3GVjYX/meF eVh9A3hoYpMCrsFmHCfL20h2bKOaiwTyayNWfghrcZIWj54xreaojSM/IOhXqyQtFNrA oexf+aBUAnRAhDmZ5m1yzFtHC4/QTvXwkjJgL9toY5ucgWUxJ3Qwwt1ml/003Ex7DSn/ UKRA== X-Forwarded-Encrypted: i=1; AJvYcCX2SK9q2SbwpvYgDL4s2C9EwAPeJzVfkA+bE/cX6thqpFwJgDh7MmqltFO6Odct9Ztnr+wLUmOKRc3IeEu6hl9uAlvABDzVG11UihqF X-Gm-Message-State: AOJu0YyKYR7ywlOqUnYFHsJ1lrpOtEAzNT4A0+0APjMaXDurh9VvBDhj e67i/qAVwIDx2TKihapxIFylcXh5S0SWigcQESLWvtcXmga0YSamJZkMIxySf3/0x6ZurCjKbrA BJbdJKViovwbzZBkwQURl9fJI7RqLjZHebvc1sg== X-Received: by 2002:a05:6902:2203:b0:dc2:2b0d:613e with SMTP id dm3-20020a056902220300b00dc22b0d613emr2388159ybb.10.1714720809843; Fri, 03 May 2024 00:20:09 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240501-pinctrl-cleanup-v1-0-797ceca46e5c@nxp.com> In-Reply-To: <20240501-pinctrl-cleanup-v1-0-797ceca46e5c@nxp.com> From: Linus Walleij Date: Fri, 3 May 2024 09:19:58 +0200 Message-ID: Subject: Re: [PATCH 00/21] pinctrl: Use scope based of_node_put() cleanups To: "Peng Fan (OSS)" Cc: Thierry Reding , Jonathan Hunter , Dvorkin Dmitry , Wells Lu , Maxime Coquelin , Alexandre Torgue , Emil Renner Berthing , Jianlong Huang , Hal Feng , Orson Zhai , Baolin Wang , Chunyan Zhang , Viresh Kumar , Shiraz Hashim , soc@kernel.org, Krzysztof Kozlowski , Sylwester Nawrocki , Alim Akhtar , Geert Uytterhoeven , Patrice Chotard , Heiko Stuebner , Damien Le Moal , Ludovic Desroches , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea , Dong Aisheng , Fabio Estevam , Shawn Guo , Jacky Bai , Pengutronix Kernel Team , Chester Lin , Matthias Brugger , Ghennadi Procopciuc , Sean Wang , Matthias Brugger , AngeloGioacchino Del Regno , Sascha Hauer , Andrew Jeffery , Joel Stanley , Dan Carpenter , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, linux-samsung-soc@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-riscv@lists.infradead.org, linux-mediatek@lists.infradead.org, imx@lists.linux.dev, linux-aspeed@lists.ozlabs.org, openbmc@lists.ozlabs.org, Peng Fan Content-Type: text/plain; charset="UTF-8" Hi Peng, thanks for doing this! I am very much in favor of using scoped management of resources where it makes it easier to do the right thing. I agree with Krzysztof's comment that we should avoid scoping in cases where there is a clear path grab/use/release so the code is easy to read already as it is. Let's drop those. I saw there was some patch that was even a fix, perhaps I should pick that one separately for fixes, but probably it is non-urgent. I suppose we will just apply v2 after people had some time to look at it! Yours, Linus Walleij