Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp695789lqh; Thu, 28 Mar 2024 13:26:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXm5KajAbdvJmIm35JwAv5+RzTn2pyrBDad/qzvznCwK3hnKfF0cIw6IRnCirt4BLoBnw8ZDxHeGJW5k3oCWpygwDU5cKECTDPeAG3mFg== X-Google-Smtp-Source: AGHT+IFT6ERFQ3qCuamcTIGap4UZOa4KQDNK0453ws7ff/+DinYKCx9XKefZluQz+CxSaaZap7KN X-Received: by 2002:a9d:7391:0:b0:6e6:74aa:edf4 with SMTP id j17-20020a9d7391000000b006e674aaedf4mr380673otk.5.1711657613557; Thu, 28 Mar 2024 13:26:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711657613; cv=pass; d=google.com; s=arc-20160816; b=GmOEiUZ5Wv4uzEObO3dJKexJtQjtD05/CyILycAPE+uD14XQUqsr+xJ2wUy05aztZa VE20ej/J2XNAVytuBHzEb+jSU3qUUBJPdwlaLI/ZqZJrQA1nwuHIkxo/iK3ym/8gIskR BTBlIDJR+wk7obqoq104FoqB5d9JRjhoW0VbsRtaSUegyXnxHadr3OHiOrHY174eHuSB 0LVGwOqF3hxyCltfLh2EfQoZcAPv8WnDwukogV8Kon8jdJB1u4QHaAwc18Mf8KPnVsDf UBfrlxOde3LA4chejraHlhFfIQ8455AwiNPh81+bb10SVsCP8NX4jCr6YXwPbRdydNGo VVnw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=q2Vv7LHMy00eq4f/Cjg5Q92aLhSZ3bTpi4kHLxCjmLM=; fh=uCMNp/QjFpD0hadAmdqR5bavi0Zno08rOq+nU9P53ow=; b=qCUX1Zq1QKaDBDDrCG3c9M9rwPHbvkUehn4husPuT1yzCco+UGqp9rXR0jlSMVZH8p qM4tw+Bk/woKumyo6IUniGzRaF8xJ0TvUNkfsCaznt8XFd5IUaYNEWvYAFyZCHovOalq 2bf0Whn6Qn1zktlZFImw0rVQdJXJTMyrf6/35vCjtomp1wMXOlNuyWCHNqjsqIvPzM6a fuoXggTqsGJ+/iaLIF/zQV3JLHGO5/iKCLVVfm4VKagAyllYfRG/uMsSSo42fH9chWyt 0bVVmKnP3qXctSHXXbJnchN21fUAKv+9LMr+9IAO1syPiszy6l+HDaRYhdXjtUtgGikt 4FIA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=t4o2OmxM; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-123579-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-123579-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id x16-20020a05620a0ed000b00789cc5f44acsi2086052qkm.373.2024.03.28.13.26.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 13:26:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-123579-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=@kernel.org header.s=k20201202 header.b=t4o2OmxM; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-123579-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-123579-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 764931C2B352 for ; Thu, 28 Mar 2024 20:26:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A533C13A403; Thu, 28 Mar 2024 20:25:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="t4o2OmxM" 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 B2FD7131753; Thu, 28 Mar 2024 20:25:38 +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=1711657538; cv=none; b=saKR8OaYPInnj1sJ9UPLDcBlK8O0z0gGtNV3wFc1QhDR95u5K/Ev76XHeBjhIRDWseFWsT/3pj11aHuwHEmLf/qDcgsQL6TbgIkLNkyjmC+5DE6avzaLPCTdWSHbh8N+ZvWUTmNwPI9ehUwGRjQY3TtT0+N+jKScya5BR9wacQ8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711657538; c=relaxed/simple; bh=uLKGKHPYrINSKa7Ua6spfB0BXJ6X0qB7dFs0VLn6mow=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=U4iS6f6Kjldz3b+i1lu8OAa5SlOX5rW5lmyxGV3yCIH0D+v93AtY6HnRNONgozS0beXM3QK4Nooy+1Ih7LXMUS273CTdRFodAfgvdOi/HVsnR6B13t4y6gWM2r7Eu0a5ZASX7nrXPCsXS47HxPkONpoZ5eC6kVhKXhnEOvHVNM0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=t4o2OmxM; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9170DC433C7; Thu, 28 Mar 2024 20:25:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711657538; bh=uLKGKHPYrINSKa7Ua6spfB0BXJ6X0qB7dFs0VLn6mow=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=t4o2OmxM8QuDeLAfom5BUyuBUVPZQG+XUENdNqCrWf07mov+v/xlV3wpyjbONMYDd sGoVZ38a/ieAYoupou2K+k5BRDOnBTQ+SPIpR/ppuYHARZZ6Audan+8E4Lf4FZyBf0 PgWKq7ZjWxvvyF+capA8hj21Hr98wmYkppg+SnWoNOZAtpli/EcTWznfsfGLimjwqJ m7xsdVlS8Tb/Hfu2/3row7LEvRsal45iPQt0+WATTwhQmRJcLwSkh2hYLAcIcjKDhc tYv1DOIpwVq1E6uwFjmWifRtZeHDyw44mCmSDDehBV/XienNpptDe2MeKJfBOfFR3O P2FVvkRBPDE9A== Date: Thu, 28 Mar 2024 20:25:31 +0000 From: Mark Brown To: Dmitry Torokhov Cc: David Lechner , Jonathan Corbet , Liam Girdwood , Jean Delvare , Guenter Roeck , Support Opensource , Cosmin Tanislav , Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron , Antoniu Miclaus , Greg Kroah-Hartman , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org, linux-iio@vger.kernel.org, linux-staging@lists.linux.dev, linux-input@vger.kernel.org Subject: Re: [PATCH RFC 1/7] regulator: devres: add APIs for reference supplies Message-ID: <8d98fab7-d73b-45c5-a46a-ace57907d25b@sirena.org.uk> References: <20240327-regulator-get-enable-get-votlage-v1-0-5f4517faa059@baylibre.com> <20240327-regulator-get-enable-get-votlage-v1-1-5f4517faa059@baylibre.com> <043b347b-2652-4ffb-a8e0-954a89899ade@sirena.org.uk> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="5fDUEvDFvOkj++3z" Content-Disposition: inline In-Reply-To: X-Cookie: Yes, but which self do you want to be? --5fDUEvDFvOkj++3z Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Mar 28, 2024 at 01:17:52PM -0700, Dmitry Torokhov wrote: > On Thu, Mar 28, 2024 at 06:18:32PM +0000, Mark Brown wrote: > > I don't follow what you're saying here? What normal APIs are not > > available? AFAICT this has nothing to do with a devm enable, it's a > > combined operation which reports the voltage for the regulator if one is > > available which would still be being added even if it used a devm > > enable. > You can not do devm_regulator_get_enable() and then call > regulator_get_voltage(), you need a new combined API. I think the theory here is that there are so many instances of this reference voltage pattern that it's useful to have a helper for that reason alone. --5fDUEvDFvOkj++3z Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmYF0jsACgkQJNaLcl1U h9CUrgf/XPKWYWqhNVXtXDECIbF2IgErrGFkL54cu8EWxC/OrJPMdGnZV8lQmK0D +pOV7o7CYYYtYG5K4brvdgqgAyK0COk55E0N4Y8PCtLIhnLmCNr+WsWP2RXlmwB+ m/K9zfyav3r6ZyKE0xZOeBderEAOixJCFQkJN/ssppyjeC2RAbOVmIcA3kpni8Vp ONJFpdvniqYsk7lhetuSbn3NcfQefcWn0KKq2B0ZsgS1fWN70/ccR3cKhlZVfN1u oG3zp4KlquAT/eTI+FGiqc3N2zVTON/tjEZEZMEldMsuZ3Oegyr75QIulXVqPtQq G1AjkHGXsSDsNt5PERnu3xYz6F/XHQ== =GRYZ -----END PGP SIGNATURE----- --5fDUEvDFvOkj++3z--