From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-dl1-f50.google.com (mail-dl1-f50.google.com [74.125.82.50]) (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 8A16A38837F for ; Mon, 23 Mar 2026 19:42:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774294925; cv=none; b=qSxNpHcLUxBBKMkvawE3jitZZxJooMbOEAevGq/YT6ekn2dvUMfw8/jfF4ClZQbcve4Sc5YGf4mLfvdwPz198dvdM3walXnsx+sSvHWOQHEkkYASmtZzduoQnJsdSrlzvzyaEBEItevZEGybBWT7zPZz0ceznc+3huhqMuVihoY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774294925; c=relaxed/simple; bh=2SF6pvs2emzV/AhRbggyg1HdfzHcesbv4DvPDEr78n0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=SqVCZ3c156QBOSEonxgRQ/RgNK31aD5lIgQiMVlo6FNqxOUCfDRLqKrahjFZDM7tEo/+0I6AenR1XuLxC7DPNcQyQtzepDQSc4o7Wbof8v/udJYMJ1CnaF9lOkbwWHr2TGuttVFVx0mekSe3JdIWBUIYVz1RXrlPspZ7xdroG9A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=mpuq/cLd; arc=none smtp.client-ip=74.125.82.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="mpuq/cLd" Received: by mail-dl1-f50.google.com with SMTP id a92af1059eb24-1273349c56bso4329960c88.0 for ; Mon, 23 Mar 2026 12:42:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1774294924; x=1774899724; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=YdMs/q66h1+QBJjH+XkkqQHaHRaGP3OKtdQi49odTsU=; b=mpuq/cLda6pGx/tUb9lDgqEk1TmEAKbObTl2RQBeIQ7TfcopAZW6vT0jewqombymsa ffggOe2XuFf6d+ef7o4qVGt+fx4IpCgBt2qkMgJOQCi+uczeYEF6rIesjdsKrEL3M5VN CcYRglXwvZNqQZHopCW8GXfwLre3jBZ2qBrCP9NxR6MVZ0e4KhdAyK5d8fGJ+PYRrg10 D9RJFirOLY1Wh595juUGg0DnPynppjDk3nEcSuWQ+SN++zEEZoNuzRhxsDEAn9cMWXlJ k5oSqN6udr9CgxHTJycW3gT0+cJeHTNiRaTAEiYb/tLjm2z6ObcvoWtWz1zkHGgHDNEl zSxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774294924; x=1774899724; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=YdMs/q66h1+QBJjH+XkkqQHaHRaGP3OKtdQi49odTsU=; b=f0qQPfa4jpghV4aL75FDz1SsETvzk7RyAiA6u8GbXU4CW1jdQBBD9tU12TNZwf31zy SUK3uZbs3Vy18hppbd61uwDwKK9mjAWugSsBN7mvwOW5C5oW5pdU7dwdXMIhrV6bjHbh ucy8Hlp27E1eUKay38RtZgCJXIPMiQW+nlt09NZXP1BUrryhx8XvPelx8tO08j7JTixx /4I0TJBoUSmD/Sbc0A8muZBZ1YQK5Klbt53omOHKbgHpCDvPXwqwF49/AsTwyLeZ1zip iwFcU4S98iyJ4LVk1EHw36oxaM3dCl4/3LXOJgYYkA1DyEgokmGghimlkDq2Nto1A9L5 adLw== X-Forwarded-Encrypted: i=1; AJvYcCW3g2EMsGNOF1c5oZY4UnIFtWE5Ate1+ZS9hIZFKpPiL2Yw8/jwiPxZ372DlFiectT6wXEZa4Y=@vger.kernel.org X-Gm-Message-State: AOJu0YyDkLGE+U7MTukiI+r1odDLydJoIDHFiX+HgmIASbFASyWHC+Sk NXpC9zLDbeMnsJyLKP2Oe5syHogv45QpoyaRKZ6etdFO/TWH8g4cUuLV X-Gm-Gg: ATEYQzzVtOI28j/RSHrTJ6s/HvSnhmaJQCe1VMuk1zPYEyiZmnby6/Wj5NJXx4l+W09 ESwhQJnHW8hlHChPyHPAPcFAcIxKaVHkmUOdlVbIXP3fd6KsTGPTncD7KvguL35tdpza9daYpvK 9BnWRwBDCq1cmklPdZS1uZNd8NeMm50vJUGzX7llBh++hTfUqVgoV7kVW0hG0krwt++4vkBsnj+ MIqmBY2XUIaX6LVtO2Uhu5uRL4AIGLBuh5AAMqFWq6vrdsScvdCC3T3zDjluTCDDHuU/HMSXncP jsXH9SAjQ2kxH6hmTHi4hbp6tSp4BwcMF5UpyD9eA6Mi2juck18DHQdcFqDLFwavRjSo/uHwv+s SutBrHhvrupIkhJoSiHj3YyqocqxmPHs6ri4STK9iF36sHyFIuOVp2LdiWPlu8YRdAfZVBXzEoy m55u5efQMB1dDqDIVsLeXLSpM+JibmphsO4zDHbeq70IYBs69K3hYXHw0WCa3B/sJ8 X-Received: by 2002:a05:7022:6713:b0:128:d1c9:3633 with SMTP id a92af1059eb24-12a7265f60dmr5533874c88.13.1774294923678; Mon, 23 Mar 2026 12:42:03 -0700 (PDT) Received: from google.com ([2a00:79e0:2ebe:8:a296:1211:5ab0:bc95]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-2c10b17b8f2sm18088976eec.9.2026.03.23.12.42.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Mar 2026 12:42:03 -0700 (PDT) Date: Mon, 23 Mar 2026 12:41:59 -0700 From: Dmitry Torokhov To: Mark Brown Cc: Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Vinod Koul , Neil Armstrong , Liam Girdwood , Lee Jones , Pavel Machek , Peter Rosin , Andrew Lunn , Heiner Kallweit , Russell King , 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> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7d46803e-b285-4e9c-8856-10100fa0ea85@sirena.org.uk> 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. > > Software nodes are already a bit of a concern here TBH. Firmware vendors can introduce incompatible DT bindings and have them in their devices too and we have to deal with that... I think if this pushes closer ACPI and OF schemas for at least some subsystems closer to each other it would not be a bad thing. Thanks. -- Dmitry