Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp628582lqh; Thu, 28 Mar 2024 11:18:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVkmXRaXEBhYPj2UPXgFbGrdilosPt7WIgUwhBhtjff76ickENhG9+HVwAlE4h1aRXkfFO3QtjU7jEEvEQlHqwh/tkA4aFSYm5OE9NiEw== X-Google-Smtp-Source: AGHT+IFcds5DOwi0tLGbOj8DbzAwSMH4dFGe/lV6AylFzuHzf0Au73X0hJnVjDNTcT92uGj7pcXF X-Received: by 2002:a05:6214:aac:b0:696:727f:1a45 with SMTP id ew12-20020a0562140aac00b00696727f1a45mr21650qvb.20.1711649939081; Thu, 28 Mar 2024 11:18:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711649939; cv=pass; d=google.com; s=arc-20160816; b=v5inif12QFK8IZzwJUQAXIy+4b4hxmLkAY2bNUvcIX7Y1cX/cpWEFtwhjdey2vPj+x P4eBsBfEz1bEqKVTSIF1ebq14KCTiQHZdQFw6/2+w4oBTzA1JeDlpwS//ugCLgriFue3 +iTfOA6nTQfxJn+vbLjxR1rPQcpVSvh5W6FyzSo26KSxphRZydDMMdDDI0LHPqsyYnmw IwrTgvQUOQKWWX98ULv1HPtguX1PuigAIuwi7bAerIPfgHt/qDIUB6R6OAOi/HiqMdBh xOmlGhON2GmPnjTAv9zQZvnJV1EvWlHrH4t/2c784PVrxHKGvV4tw+sBbBKDw0Mwi4Oe qWYw== 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=vC9zS5F+yZiOoloLefZEueTQTGx/63zLon+Gx1YPNH8=; fh=uCMNp/QjFpD0hadAmdqR5bavi0Zno08rOq+nU9P53ow=; b=nK70O9IXBL7gmaYr/HsmISvD8tkFFPovC+hj9VFqjAKGt4T3IOktQrBJ6+FZDpjVZe Mgm5WhBgSYnEBflYa/+nGW+zoWyorjy9w8LI7Wz0evCAIS9ybJYMtY/kaFLDOAAB++MJ f3JzV6sbOQbBiQllhZCtGaFqBPHPhm1GAVtSstIv6iVKckfA2t+3ZmbPcMPwFaSo4jxB PKP3iBqpPQ3Uxiv7sO70cKqjm78D0lOnUyouxYB+a6llHqKcm+iwIDHnhhh0YZczIqd9 Hqeq8/WfiUPsk/C84HCQZsMVRXxf9rxcNE4htqKIjFjJYZc/X/TSVUXIlfwbezsgtw4G rP4Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IGxdZp5h; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-123408-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-123408-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 q4-20020a056214018400b0068fc588ca99si1874862qvr.476.2024.03.28.11.18.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 11:18:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-123408-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=IGxdZp5h; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-123408-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-123408-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 C92A71C2563B for ; Thu, 28 Mar 2024 18:18:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1BD74136E17; Thu, 28 Mar 2024 18:18:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="IGxdZp5h" 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 2FCB980616; Thu, 28 Mar 2024 18:18: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=1711649919; cv=none; b=UnubdDozoIBrkcmN0RFWilO7WjES0rWuI0/Ihz4yruMQPtgMLHiyZmyFAZNOiaG8CEGRsHDanhPe+93EEwnK0orGL8bgHVJOWbsTM3KEAFoQBTUuZBWz2DHC3L3E8sGfidtFZoIvwjinWbyenfMY7Lke9+59kxkhFnGf3/SRd9o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711649919; c=relaxed/simple; bh=dugE1eN9SjKMTZCoMkJW/qGHVXdybbUNuNFGgoJU4bQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=CUHxrB/0EkbP5WrE4JTNs7iYj9Ynia0o6FeZYh0JUgcFSlbFR2AKgvMeF1Pd7Ikcv6NhRhh7kWBYOn2MYYm7nJ9XYhgRp5XCAUwwzpYnaLjf674Y2qFH1lCBL8scLkEgL3hBbp/IOUyrVobPkJ2SA87evBYqJabQm9xrOaaKicM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=IGxdZp5h; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 049E5C433C7; Thu, 28 Mar 2024 18:18:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711649918; bh=dugE1eN9SjKMTZCoMkJW/qGHVXdybbUNuNFGgoJU4bQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=IGxdZp5hQd8bVeR0C8gY2+N9lAaxmWJmB92LbW2FMeJBOQyDRV9rMHjIkg1DQ9/q2 wnBZCeuO+zJh5pKAdf1xxwNAX8EO86qJTzCfwGZ4r/hUq9YCI10gPilJC7dvaRtt4W SlHkzpGIYNgtrxkV4IxR2RAVHUciHqM/dDCEG8nfur8P9zBXpHOKTvM8OO6f8G0Bcr jxwf7MWr9iCKEdh8K7yLc05jfYF7f2bPFBSu4l4OWb/caZlXPvGI1JG11ymC7snLfg NTw3zLzxtzrPzWiF3HorH1LWd1Zeun7z7WD80H6S5nlKvTXu4kwXX2N8Z5Ncyj31Il W+mFoZ9tmdDtw== Date: Thu, 28 Mar 2024 18:18:32 +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: <043b347b-2652-4ffb-a8e0-954a89899ade@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> 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="cUF0P50pg6+6H6Lf" Content-Disposition: inline In-Reply-To: X-Cookie: Yes, but which self do you want to be? --cUF0P50pg6+6H6Lf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Mar 28, 2024 at 11:03:23AM -0700, Dmitry Torokhov wrote: > So because we decided that we could not have devm_regulator_enable() > because of (IMO) contrived example of someone totally mixing up the devm > and non-devm APIs we now have to make more and more devm- variants > simply because we do not have access to the regulator structure with > devm_regulator_get_enable() and so all normal APIs are not available. 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. > This is quite bad honestly. Mark, could we please reverse this > shortsighted decision and have normal devm_regulator_enable() operating > on a regulator? Nothing has changed here. --cUF0P50pg6+6H6Lf Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmYFtHcACgkQJNaLcl1U h9B0aQf9GhSPMJsemBBQsnirWqzi3QaGUE29Rt78hmG7hRYC5m9vngooWRxd8hO5 n0JQPednZleR4Sv9xLb6kXcNskt+l4KyvRc7wL1xJ2M1CjTshtxSEscQs22KTbag wvoakMhfgWdqb+Rz9KI2XnTEUJHB5ZrKh1iygy656jIu2+RiRN94upSZWv09gtKT zW0jUaUPKe6gO/wod5bKYVhbmPYEyOZ7Ya8ZvuZNQoYUqbii4oYBpb1EAT27p8u2 3k2eKUYu64XwASkizaqo6Vn0xu2LTBtaUg9tYYyCyhD0V9Suju3H41F42PgLfrWo Q55X+JAPty/mqfVn+05geMu2OBjk9g== =9vNv -----END PGP SIGNATURE----- --cUF0P50pg6+6H6Lf--