Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1293787lqg; Sun, 3 Mar 2024 03:56:57 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWs5D617NIkXUX1ejUkOvgDkYDfF9Vg5L2Aylz3vu9Bt/cS9OHaBtICVzXRNGmSlqMapI8ZLhpIZlqA96GkD/TrkwQ/PKBt0t0IGQpTFA== X-Google-Smtp-Source: AGHT+IFihU23zZTTWJUB8R07omICZN+sRc1bzKudOiu1bsJkAtXCAWJjaxQ8STnLyJe+waNl1aGd X-Received: by 2002:a17:906:b34c:b0:a44:1e56:a7e with SMTP id cd12-20020a170906b34c00b00a441e560a7emr4734278ejb.36.1709467017795; Sun, 03 Mar 2024 03:56:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709467017; cv=pass; d=google.com; s=arc-20160816; b=v7pya5JUxOlxxQ2/1+ApXktvVzmI8HDmZdGXcezfmfXFhABVAjv3QkbFSVWT+lqGzp k3RjaRm/JS6YxElD8gRxowR7AakJ+DLUIhl8iRF0ZWQCx+VqGDDVJn9genNnFoE7Iy/P AF52GWpae71+nEVxBkRBLXyNkZQqFv/XEQ1Qgy8KlqnTiTP+U9/s05gMzz2taH4oBhgV si0kPScpQf/RH7SvtmGTd4pQFla5bXx4teN9c3teX3PXxew5NW8ZnkB0mJaLNuHbXhF7 nnFDIykoaMCh2Ln8HvY1aeilSiEfkrWW17r/pLa8dPLkjNWpNH9sAOQag/XbUFVdYh32 xsAw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=arwByzBAAn5g8LOsk/4LDJ+Aa+OtHOAhu1V9FJS7aos=; fh=u+nhsqfsNpCGQMuiez0Af5RahliqOWJbQcJiyOdFwpQ=; b=Ik21muJSpZBMvyJVqR+AmW2OuqMET7yd4wpr+gYcIbuG+0aSyePzKB2hMGLi3SYFm/ J4fTu7JanY8wo7+bbaGbsvF18gmAN6YdZsxAZ/9jB02AKCa567yR5Ho/y6LGX8l+Vno2 whbAivhIWfs8SVxd3w4Tf3iGtZQGyADH7SW8cw6ZC0vN3BOHUPItSMEbxUuy9UgpoE/o hW7VNB5aeWXG/7KZXh17UBjI+9Rk+GvycxBZtDKjfpP/Lv7O4JV3NQlVqBpzb5r7/r2n Q0kW5+g+vwBm1CWKVouU09MX240DlfFCjFtQMJRtmPHo7t3q2LdLVbSXFBk2PJzIhcRK daQA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=L94S4Hdg; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-89718-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89718-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id t21-20020a170906065500b00a3eefbe195asi3129176ejb.966.2024.03.03.03.56.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Mar 2024 03:56:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-89718-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=L94S4Hdg; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-89718-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89718-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 5EFE51F21DF0 for ; Sun, 3 Mar 2024 11:56:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E6D2DBE6D; Sun, 3 Mar 2024 11:56:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="L94S4Hdg" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 14915BE49; Sun, 3 Mar 2024 11:56:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709467007; cv=none; b=jAXa1O5RW/4kyoRDxhGGwG9XjpynuN/ivTPW7yfcja0YYEkC8JcjvjlUfHnMG1vQUIjjNG4JbzYb5qaAfdr+oJyzWUzCW2+iX326NZaxnfCzVoaesgxzmpBRg+AYYDhErPeWIDolr+ng+ujRTn/IHlWYi3KG3SkyTs+ZET6l4L0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709467007; c=relaxed/simple; bh=rsWl8E4VnDoBE0w9p8LDB9GFa21nhzS6req7J0ChWt8=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=gunc1D3mporN6VnXhHcOMqHGZGG+kgxIUWNPCtT/M0eAROGwv4twGWAW2jdJmV9bUQBupIQXpL+doMsJUzVdfbO0yGgrUyshzvEbyKPfCgzqzS98ADVUx+Y5blClITvX1pn3Yf+fJrj64eNnxYJTk6QPr4orl0JRNvsEnZnse7Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=L94S4Hdg; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 862E4C433F1; Sun, 3 Mar 2024 11:56:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709467006; bh=rsWl8E4VnDoBE0w9p8LDB9GFa21nhzS6req7J0ChWt8=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=L94S4Hdg4NOB/gnWF3F3EtBD6SGQZtG8ZR+nZBM8YKXgqzxKsMaKmpYTCDmeH+CFg lSwg35SgBsBeo2QI1hZrm+yPvuZyz6dUO9gm8cb8GoH1EOZju3TU4eMgvVarEq6nfQ pyH+d0bIUJbKalgO4MClmvFkoh799XVpq0JGvUp2H9u/puZefqefWlZBXpw7AMRk7r ZczF3yigRFMJzVusJRBFINZLcu1VIbM3e7liPgLGJMp2mglQ0SVzKjvI52mHvruy9L NYScZMnnN3Gy6jNKMsvlzyhDa8gnymCmMLWxSPGNROBjXyLay2eaYTwdAzXmXENyQY Z6vWuCQOfFbDg== Date: Sun, 3 Mar 2024 11:56:33 +0000 From: Jonathan Cameron To: Rob Herring Cc: devicetree@vger.kernel.org, linux-iio@vger.kernel.org, Frank Rowand , linux-kernel@vger.kernel.org, Julia Lawall , Peter Zijlstra , Andy Shevchenko , Greg Kroah-Hartman , marek.vasut@gmail.com, Jonathan Cameron Subject: Re: [RESEND PATCH v2 0/4] of: automate of_node_put() - new approach to loops. Message-ID: <20240303115633.41128a62@jic23-huawei> In-Reply-To: <20240301223942.GA3179769-robh@kernel.org> References: <20240225142714.286440-1-jic23@kernel.org> <20240301223942.GA3179769-robh@kernel.org> X-Mailer: Claws Mail 4.2.0 (GTK 3.24.41; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Fri, 1 Mar 2024 16:39:42 -0600 Rob Herring wrote: > On Sun, Feb 25, 2024 at 02:27:10PM +0000, Jonathan Cameron wrote: > > From: Jonathan Cameron > > > > Some discussion occured on previous posting. > > https://lore.kernel.org/linux-iio/20240223124432.26443-1-Jonathan.Cameron@huawei.com/ > > > > Summary: > > * fwnode conversions should be considered when applying this > > infrastructure to a driver. Perhaps better to move directly to > > the generic FW property handling rather than improve existing > > of specific code. > > * There are lots of potential places to use this based on detections > > from Julia's coccinelle scripts linked below. > > > > The equivalent device_for_each_child_node_scoped() series for > > fwnode will be queued up in IIO for the merge window shortly as > > it has gathered sufficient tags. Hopefully the precdent set there > > for the approach will reassure people that instantiating the > > child variable inside the macro definition is the best approach. > > https://lore.kernel.org/linux-iio/20240217164249.921878-1-jic23@kernel.org/ > > > > v2: Andy suggested most of the original converted set should move to > > generic fwnode / property.h handling. Within IIO that was > > a reasonable observation given we've been trying to move away from > > firmware specific handling for some time. Patches making that change > > to appropriate drivers posted. > > As we discussed there are cases which are not suitable for such > > conversion and this infrastructure still provides clear benefits > > for them. > > > > Ideally it would be good if this introductory series adding the > > infrastructure makes the 6.9 merge window. There are no dependencies > > on work queued in the IIO tree, so this can go via devicetree > > if the maintainers would prefer. I've had some off list messages > > asking when this would be merged, as there is interest in building > > on it next cycle for other parts of the kernel (where conversion to > > fwnode handling may be less appropriate). > > I'll let you take it. For the series: > > Reviewed-by: Rob Herring > > I've got some drivers/of/ conversions too, but they are probably next > cycle at this point. > > Rob Thanks Rob, Whether this makes it for this cycle is probably dependent on whether Linus does decide to do got to rc8 as hinted at as a possibility + whether Greg feels comfortable taking these through his tree (char-misc is the normal path for IIO). I know various people are hoping this series makes it, but if doesn't we can do an immutable tree early next cycle (though obviously that may reduce speed of adoption). We are discussing the equivalent pull request for the fwnode version here: https://lore.kernel.org/linux-iio/2024030239-gift-cabdriver-266b@gregkh/T/#m87e7208820ebf6416a77a2973773b65a087b4796 I've optimistically applied this series to my togreg-cleanup branch and merged that into the togreg branch of iio.git for linux-next to pick up. Thanks, Jonathan