Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp838177rdb; Fri, 23 Feb 2024 01:13:49 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV7xvurx7UQ1PMP2gIHFjYE++n3jmdsKMKH7oBXNiqRFAgbgKgkExreGVxlkIYq+ZBxAizF3y/YfAmaaGTDnuKehCTcc0E6wU4ytNPOag== X-Google-Smtp-Source: AGHT+IGxbmhnjQkTXurd8Wji1K3wGx+HCXHMXps4YevoSWEJcxGiJyClOEdfqQvd/NewF0fLBxiG X-Received: by 2002:a17:90b:208:b0:29a:5ed9:ec97 with SMTP id fy8-20020a17090b020800b0029a5ed9ec97mr1048691pjb.32.1708679628878; Fri, 23 Feb 2024 01:13:48 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708679628; cv=pass; d=google.com; s=arc-20160816; b=uP0xNnbABFUdtjSOltWOCE3mMjVhFOP68b+7XlktoT6hiKqOdEldLk2dIC+PRAn/mI cnmYRrcLZ6yzl38votgX6izHbwM4VPAtEXhNbIwetqaf3ZNnJGTEGrp5ZEt5ARQVXDgI f9oZ2gRBSgJly0wsiv5B3bgkI+Dcz7ikZq4Cyse3SEVPSoAPzB3VgDGGZFDhNBTVrQxZ q24QbJnUVl2u//RcbjwSP0aefqzKgqzOdKDF0lAIIaNVWWEvFBCTxAjbitqlN9NMqbho 7/Q294kARGxwphO4PkK0kpBN3ZyuwX+tIP9t82XRy+j4xPMmvTEF+WNPn5PI/VQZgbrY 7S5Q== 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:organization:references :in-reply-to:message-id:subject:cc:to:from:date; bh=wnP624YCC6bfS6EDPWC5UMeuMtRMTPCPB94nCmZIjH4=; fh=X+9ZxVki2m9Jf/DaDEJmSmNncTkvHAQmRLytP6jDlnY=; b=w+ynvA0dPt3+5LEc4ZBiHPwWu6WFM1WaslztxMuKNAyVQvm7AqqTXuSE50Xl4JMP2v dr09xU/AvhtBJquDlZRh+N34ANEA6bczKMLuNS/LPp3tuoR1jR9OYtEf0a+qJpa325Jm sF3Wo9J+F001nxSxfvq8efgmbkD2cVO+13NKjybiTnLe+JpNq2tH1DPlaeXvKbXpFsqn CUfW+7ot6tQmtxoZrGITg1rEgQsNc71iFVURsXhw9ssIDNCdY6uxKc0QUZTF/jKBiVHH dAYPF8C2IToMtTKNfDd2CpySwgg2amW4yqn36Q2u8rIbS2WS3D0IgCclblNhGdwrGS/W nOQQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-77985-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77985-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=QUARANTINE) header.from=huawei.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id cz7-20020a17090ad44700b002995b9d7859si856662pjb.36.2024.02.23.01.13.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 01:13:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-77985-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-77985-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77985-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=QUARANTINE) header.from=huawei.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 8F530283CC7 for ; Fri, 23 Feb 2024 09:13:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 59A4458AA5; Fri, 23 Feb 2024 09:13:42 +0000 (UTC) Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) (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 AB6AB1BDEE; Fri, 23 Feb 2024 09:13:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.176.79.56 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708679621; cv=none; b=d0NmrjgqdlhKN8itCy+ve6/EOmss2rH6NnlM0dhMIka8u1ta44peIdSKQ34uNxNx26uZ2u/TpgzjoAYMAGVMAPv9i6qGiZn2wttOfkKQImOoXYGrEIQANgciHj6o0j0U/clop1hy3An1Q2oaJZ3zARuY1mTPMYXXsG//TaDuX8Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708679621; c=relaxed/simple; bh=/cxpcMGeXQCVeZ+jggIPGGTTs4Sl/gpFjVZN1g4uHzo=; h=Date:From:To:CC:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=bII2iLj72jKaIfQATaFa8UU8COt1ba9GoIPk5HbTjwkF/R+UmyYKiKG0nfGuWRCxBNvQF1hFUiWEHjzNwazkb9YsGMA+sVDdAC5k0az0iIZGlFosnO9I2kNt8CRO9XvVWUus+2WHubv9Vl9/aim16lIBm+HSn9Q2NyZbJ9u5j8k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=Huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=185.176.79.56 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=Huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.18.186.31]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4Th42G63N9z6JBbR; Fri, 23 Feb 2024 17:09:10 +0800 (CST) Received: from lhrpeml500005.china.huawei.com (unknown [7.191.163.240]) by mail.maildlp.com (Postfix) with ESMTPS id D5CF81400DC; Fri, 23 Feb 2024 17:13:35 +0800 (CST) Received: from localhost (10.202.227.76) by lhrpeml500005.china.huawei.com (7.191.163.240) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Fri, 23 Feb 2024 09:13:35 +0000 Date: Fri, 23 Feb 2024 09:13:34 +0000 From: Jonathan Cameron To: Andy Shevchenko CC: Jonathan Cameron , , "Rob Herring" , Frank Rowand , , Julia Lawall , "Peter Zijlstra" , Nicolas Palix , Sumera Priyadarsini , "Rafael J . Wysocki" , Len Brown , , Greg Kroah-Hartman , Nuno =?ISO-8859-1?Q?S=E1?= Subject: Re: [PATCH 0/8] of: automate of_node_put() - new approach to loops. Message-ID: <20240223091334.00005522@Huawei.com> In-Reply-To: References: <20240211174237.182947-1-jic23@kernel.org> <20240216144756.08e25894@jic23-huawei> Organization: Huawei Technologies Research and Development (UK) Ltd. X-Mailer: Claws Mail 4.1.0 (GTK 3.24.33; x86_64-w64-mingw32) 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 X-ClientProxiedBy: lhrpeml500002.china.huawei.com (7.191.160.78) To lhrpeml500005.china.huawei.com (7.191.163.240) On Fri, 16 Feb 2024 17:25:45 +0200 Andy Shevchenko wrote: > On Fri, Feb 16, 2024 at 02:47:56PM +0000, Jonathan Cameron wrote: > > On Mon, 12 Feb 2024 14:03:29 +0200 > > Andy Shevchenko wrote: > > > On Sun, Feb 11, 2024 at 05:42:28PM +0000, Jonathan Cameron wrote: > > ... > > > > I'm a bit skeptical about need of this work. What I would prefer to see > > > is getting rid of OF-centric drivers in IIO. With that, we would need > > > only fwnode part to be properly implemented. > > > > To be honest main reason for doing of first was that they have unit tests :) > > fwnode also has KUnit test. Have you considered adding test cases there? > > > The IIO drivers were more of a proving ground than cases I really cared > > out cleaning up. However I'm always of the view that better to make > > some improvement now than wait for a perfect improvement later. > > Yes, but in my opinion _in this particular case_ it brings more churn and > some maybe even not good from educational purposes, i.e. one can look at > the current series and think "oh, OF is still in use, let me provide my > driver OF-only (for whatever reasons behind)", while targeting conversion > first will tell people: "hey, there is an agnostic device property framework > that should be used in a new code and that's why we have been converting old > drivers too". > > > However one or two are not going to be converted to fwnode handling > > any time soon because they make use of phandle based referencing for > > driver specific hook ups that isn't going to get generic handling any > > time soon. > > Sure, exceptions happen. After the series converting over most of the cases this patch set touched in IIO, I have rcar-gyroadc and the unit test left, which are enough to show the purpose of the patch and put a few real users in place. Will submit a v2 with just those 2 users. Ideal would be to get these in for the merge window so it is available for other subsystems next cycle. > > > I'll probably focus on getting the fwnode version of this moving > > forwards first though and 'maybe' convert a few of the easier ones > > of these over to that framework to reduce how many users of this > > we end up with in IIO. > > Thanks! >