From mboxrd@z Thu Jan 1 00:00:00 1970 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 3601F282ED; Wed, 14 May 2025 15:50:50 +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=1747237851; cv=none; b=hlAFfV2juk/vlp+OmY42Nt6CccLwXgLL09ylvsAKKcuOawRaHeGVcOTAPoJrLqCOZGp4+P77uH/VXswwRmphx5VFa4Ui7FMXSSXpFWSKbbOeVnZrbYrScU0BomW+26P3Ctz/8PJXzIIAGHILyhUsyXtkLAleLxu7ZWu5UR9iZls= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747237851; c=relaxed/simple; bh=KYcDtelwc+CQhffPMVw7iv8P+rH8uAeIxnknCg0hfjo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Wuu3xcb8ivUdfObcvlbLlBlRAamaiyqH3U/bKAYqitla+Qq+PpDB/f0LyXHOCRgIf3Fi+ta8ckJ13pbsnqvKY/VfHeloUDRnBaaBWmM6gu3HudstqsobJsBkqqnoTmp2lbNhiyjvRpZmnkb1FA+R6ye7EM5fEvwIO9yyDGtJCRY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=jLrafxgV; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="jLrafxgV" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DE800C4CEE3; Wed, 14 May 2025 15:50:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1747237850; bh=KYcDtelwc+CQhffPMVw7iv8P+rH8uAeIxnknCg0hfjo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jLrafxgV6GzrNiib24vzEJkseU++71XKHooh2UjpdDPq3ctaMbW7nqeQfg84NjTi3 tkb/Non8CtO7n34xE9ddB4DzD9C54g4G8NQC6coIruWeYHVII58656z1fE6kofmmh8 OF/VVcP0UnxchE5nFJM6VG6AWdPScJN8/sO3sqoNFo8VVIBTR3gis+i6ZLL6jDkUso 6xtDyB/JwPqhtjUqEPZJW+KhXSM7momvCoxHbakF6rAhKq8QlAoMib7B7kTipt1rL5 sz2BH9CEzfKtUfk/1ivsWrh/q+CRZTPosVJC7FeuK0AP2eYdsFIrrCTIySB0VTktTl Vsc08h8ZkFzUQ== Date: Wed, 14 May 2025 17:50:46 +0200 From: Mark Brown To: Benno Lossin Cc: Daniel Almeida , Miguel Ojeda , Alex Gaynor , Boqun Feng , Gary Guo , =?iso-8859-1?Q?Bj=F6rn?= Roy Baron , Benno Lossin , Andreas Hindborg , Alice Ryhl , Trevor Gross , Danilo Krummrich , Boris Brezillon , Sebastian Reichel , Liam Girdwood , linux-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org Subject: Re: [PATCH v3] rust: regulator: add a bare minimum regulator abstraction Message-ID: References: <20250513-topics-tyr-regulator-v3-1-4cc2704dfec6@collabora.com> <52CFFCA2-F253-49F1-9EA5-2865BD094B25@collabora.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="Zn34bd8tAQ2Lmo08" Content-Disposition: inline In-Reply-To: X-Cookie: Well begun is half done. --Zn34bd8tAQ2Lmo08 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, May 14, 2025 at 05:38:40PM +0200, Benno Lossin wrote: > On Wed May 14, 2025 at 4:40 PM CEST, Daniel Almeida wrote: > > By the way, IIUC, regulator_disable() does not disable a regulator necessarily. > > It just tells the system that you don't care about it being enabled anymore. It can > > still remain on if there are other users. > Hmm, so a `struct regulator` might already be enabled and calling > `regulator_enable` doesn't do anything? It takes a reference to the regulator. This may or may not result in a change in an underlying physical regulator. --Zn34bd8tAQ2Lmo08 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmgku9UACgkQJNaLcl1U h9Ci8wf9GqNo0Cri3dG3onMfDV5aJMf/mJ8NBJoFfqD9DH6rkCXK1qpO4ZCU9SGp QSGWqxFbhPAg8lEOWRfVsqI4LHCIStgN1QYQwEcUeFFbB2p6id+aT762/fWioqQC ilg2DH6PYzflFhmGAwZ3eN0MHz38BOKbqYayL+ud0SkrutiRX2SFQK0VXC6j+rNY i0KlUgFcYb21FYy1Hm0n5y4pdePWpgBKGYDyM7yDpGrtrCnOj3o7qOL0smbqV4bx SWHNoKvWNGZgTDNHnNwiBVx4SOQnLEpbAh6qaiCGWeA5cEOSjBxgY9bmgOVeKGuu 0xOT4smNNj8sYGT5Y3ECOgEMtrxHPA== =ZCvN -----END PGP SIGNATURE----- --Zn34bd8tAQ2Lmo08--