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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 7825DF532C1 for ; Tue, 24 Mar 2026 00:18:10 +0000 (UTC) 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:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=a0AadxQ9wS+Fz73pP/2FtID9eEnW6qs8aydGYt/z17Y=; b=3clE86VsgCp7EO 7NdHpSmYnEfBVuox/KpotqMkawFQYa57DAl5MBbU8IUqkdoVinUZLxxlyf4Omi7VWgBAAVt08W9Ee Ag9I1zJeNgMi61WocOJHjcZVKMo3bvCjONsOeQYgjd2BJgJwrcwK8Gia/SwYu62z2x/ANaWXLwqwM LzKJ07+egUyR11CjavQaR/Q156a399MdwePoziHZCb1Lo7dXKP/0VAX69IMLsgeR8JBDsCn59DDG+ OspRGZzGYdho79VRlK4/8oyCRP0Mhh++Bm4Sy8xdyH87D/X7kXygaK4Oe42h/6StMKWex0CQbMSgR fqVgFmEvnOmvFZs2qXrA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1w4pTG-00000000EQy-0hVA; Tue, 24 Mar 2026 00:18:10 +0000 Received: from pandora.armlinux.org.uk ([2001:4d48:ad52:32c8:5054:ff:fe00:142]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1w4pTD-00000000EQD-3h5X for linux-phy@lists.infradead.org; Tue, 24 Mar 2026 00:18:09 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=MSX287mEj1PJ0+XbuTwc2jwqBFKpfZ05vKNTdfaTtl4=; b=sZ6629058AagkkFpPjIjx6Cghk K9W+B1mGljVY0+QGbgArajLwE1zhg89Swm31V/nmbkqUtcRr+qRgUnIq/wFde9SAvZon5yHXMCR3R swwp20keUYq/Qyzmf9poS31TdRaJBaz68aWG2vueLZDl/FBclewi7+23aK7ar1tkRgxAV7ivvQu/9 tfJAb9Ys+E/NFEGFipZsb6C8HnMelzE0+RLVxF1RYRtBPHr9sNnSPa9nIxfS2ConDfzlsGqr8n/rA OBj1uUMIjrahpkwOvhnfq4TBw95ZrW1smdWB4yy/WSqoZcHSvxH3Q9/KkKy2C/QYibzUfvne6lgLf kgeUMN4g==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:60384) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1w4pSt-0000000016k-1WXx; Tue, 24 Mar 2026 00:17:47 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.98.2) (envelope-from ) id 1w4pSo-000000004XZ-45Va; Tue, 24 Mar 2026 00:17:43 +0000 Date: Tue, 24 Mar 2026 00:17:42 +0000 From: "Russell King (Oracle)" To: Andrew Lunn Cc: Mark Brown , Dmitry Torokhov , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Vinod Koul , Neil Armstrong , Liam Girdwood , Lee Jones , Pavel Machek , Peter Rosin , Heiner Kallweit , Moritz Fischer , Xu Yilun , Tom Rix , Greg Kroah-Hartman , "Rafael J. Wysocki" , Danilo Krummrich , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, linux-spi@vger.kernel.org, linux-leds@vger.kernel.org, linux-fpga@vger.kernel.org, driver-core@lists.linux.dev Subject: Re: [PATCH 04/10] regulator: of: switch to using class_find_device_by_fwnode() Message-ID: References: <20260322-remove-device-find-by-of-node-v1-0-b72eb22a1215@gmail.com> <20260322-remove-device-find-by-of-node-v1-4-b72eb22a1215@gmail.com> <360a8b4a-6507-417a-9fc1-c53b14868657@sirena.org.uk> <7d46803e-b285-4e9c-8856-10100fa0ea85@sirena.org.uk> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260323_171807_936569_881EC51F X-CRM114-Status: GOOD ( 25.43 ) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org On Mon, Mar 23, 2026 at 09:01:47PM +0100, Andrew Lunn wrote: > On Mon, Mar 23, 2026 at 07:05:13PM +0000, Mark Brown wrote: > > On Mon, Mar 23, 2026 at 11:28:27AM -0700, Dmitry Torokhov wrote: > > > On Mon, Mar 23, 2026 at 02:00:43PM +0000, Mark Brown wrote: > > > > > > The regulator API is very deliberately specifically using the OF APIs, > > > > not the ACPI APIs, since ACPI really doesn't want to model regulators. > > > > > For now? We also have software nodes and maybe we come up with something > > > else in the future... > > > > > I think we should use firmware-agnostic APIs as much as possible, and > > > only use OF- or ACPI-specific ones when there is no generic equivalent. > > > This makes the code most flexible. > > > > I think this is a worrying idea for core code like this, we have > > specific firmware bindings for specific firmware interfaces with the > > different interfaces having very different ideas of how things should be > > modelled. The chances that firmware agnostic code is going to do the > > right thing seem low, and encouraging the use of generic APIs that might > > happen to run OK raises the risk that we'll get firmware vendors relying > > on them and leaving us with a conceptual mishmash to sort through. > > How do you handle deprecated OF properties? This is a problem i've run > into before. A developer needs an ACPI binding, so they blindly > convert from of_ to device_ without engaging brain. As a result, they > bring all the deprecated OF properties we want to die into the brand > new ACPI bindings. > > A agree with Mark here. OF != ACPI, and anything which makes it appear > they are the same is just going to lead developers down the wrong path > and increase Maintainers work pointing out all the problems. That's three who agree. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last! -- linux-phy mailing list linux-phy@lists.infradead.org https://lists.infradead.org/mailman/listinfo/linux-phy