Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp363396rdb; Fri, 5 Jan 2024 12:23:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IFLLbrn/lkuxymgVdyDxm6eJW9QlAxw86KDky4u3SjO/PxT7vs5E43IfjRwyUCsrstMlQUz X-Received: by 2002:a05:600c:3b8e:b0:40d:6e30:1d6e with SMTP id n14-20020a05600c3b8e00b0040d6e301d6emr28640wms.87.1704486220757; Fri, 05 Jan 2024 12:23:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704486220; cv=none; d=google.com; s=arc-20160816; b=VCmDW4fl05i8ob9OU88VB4vLpoINd8WbjnU1IgM/Br0D0ELuprOyFbxR1gUwEuit3+ ZrhyTiu1Z+95M0KE8f6rBYf9fGvevzH4NVBkQVlSnm4HRnGicvtRuTyB66ZJEyi8T5of fVUpvSKpc3+JV0FOrCNVQERS+zVT0CojtwfqNvF5sldsZNbA5k7UUqcBlseIxfjav+nD /PTARYL672nCOohQ/EKU9CRR+6LeGz/IeKQLAom5D7ZiPU5K2ZaXtQseiP4PsG2FFD4h IIcWqK4sn8eBZCGkb2EAXer+5mGfIrSz4Qe/2VMZSsRDt+oHqonBY4CNcrm54guk3M+q tpUg== ARC-Message-Signature: i=1; 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=TdQebhlttPa5ilNCBB+v3KobdHLAVLrlfpYXjkY7XhY=; fh=oGr8iwi38XAFbcu8oqo0N+05Jb4Xz+lZSIxXTCU3KSM=; b=0p3nHttuZN2eov7ckXfHS0/SuHFzUnotnQScPy3w6Dq3+0sgOgry5rJQZQD0Pwmtus rGC7AugywpuG+/L39RhKvdwOPE8szAu/5WpcAsjkYpzkxDRfb+jZCiPMEkXUqjPwh9Hr kZSQzmhHW2SZqNsrShUO461hsOahOv8ju8oOWB+6Z0REkVEcrdokDyUZq5NJhbIKX6o7 5Dcr6RYdp3/GPIUboe/KYyVLyovyZVyNfWAgw2R2mgNLH2WfdAcGlGTqMC4e+XQPItDf MFKuAww3JQcLpzBgCZlzWQvHoB37iVn/3Js0KFJZKNWKPus5qKq1+kfCvpmmDIxIahQx sxYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DBE0tVst; spf=pass (google.com: domain of linux-kernel+bounces-18322-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-18322-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id y16-20020a170906071000b00a27f49d40b6si863607ejb.104.2024.01.05.12.23.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jan 2024 12:23:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-18322-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DBE0tVst; spf=pass (google.com: domain of linux-kernel+bounces-18322-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-18322-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 7F2A91F243E7 for ; Fri, 5 Jan 2024 20:23:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6C5113609F; Fri, 5 Jan 2024 20:23:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="DBE0tVst" X-Original-To: linux-kernel@vger.kernel.org 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 9D58A3608A; Fri, 5 Jan 2024 20:23:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A241AC433C8; Fri, 5 Jan 2024 20:23:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1704486211; bh=PkcN2ihSIABo+ff9pBaTl7f7CQyvSNcHmHiCSRdPILI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=DBE0tVstwRQZzEgx2TpLnt8egBNvIGcSyAbSQL0n1ApRitECJjcQV6dE3tlP+i/Ql TGd7Cw0ffituK6zO+pBsX86qfiSgyL1XGqz0tAWrxZXV3Cku/A4ud0qPWJa1+eK1PX 9qsT4nE9bOmjN2oF4DsBH8PM/TZ950/e0TfI7EJIOwChHSceRz9hVvsJe4S2dQ/QzJ xLUeSdLquFgpWBdyHs4bTrZ0bi7pmtNmk/M2ZBfs30u+T3+bp4hb6nttcNxLBWMvSr 2ByvkFdM3b3dbHpaw8rDh3WqjEPkCI3QY+LHqhLgUIjieqmcR/Hkj9m5S8WuNTHaqN 04o1AxqVZmt2g== Date: Fri, 5 Jan 2024 20:23:26 +0000 From: Mark Brown To: Konrad Dybcio Cc: Bjorn Andersson , Liam Girdwood , Marijn Suijten , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] regulator: qcom_smd: Keep one rpm handle for all vregs Message-ID: <3ccef53c-3333-4d1c-a3fc-32b05cd473fc@sirena.org.uk> References: <20231227-topic-rpm_vreg_cleanup-v2-1-04c79c4f9166@linaro.org> <7271846f-c03f-4d0f-a54b-7424ddd72724@linaro.org> 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="okGAQarU2f8A9pZu" Content-Disposition: inline In-Reply-To: <7271846f-c03f-4d0f-a54b-7424ddd72724@linaro.org> X-Cookie: Your step will soil many countries. --okGAQarU2f8A9pZu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Jan 05, 2024 at 09:15:49PM +0100, Konrad Dybcio wrote: > On 5.01.2024 17:31, Mark Brown wrote: > > It'd be slightly more robust to have a check here that we do get the > > same RPM back if the variable is already set, just on the off chance > > that something changes in some future system and we do end up with a > > second RPM somehow. > Knowing how improbable this is (currently RPM is responsible for almost all > power and some clock rails, including DDR), I'd say it's excessive, but if > you wish, I can add it. It really feels like something where if this was a good idea we'd have an API to do this directly rather than passing around through driver data. The fact that it's used for all power management doesn't immediately preclude having two instances managing the power for two different bits of the system (eg, a low power island). --okGAQarU2f8A9pZu Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmWYZT0ACgkQJNaLcl1U h9CkTAf/SyvlUQy6c7giS1ICGR00AlRStxV04y1DY4uwCc26V1lL2TX7UNC76a4m KMqlLOQPh5DN3EqASjWGqjEXfbzR7/imN6WX3SoJL2oITruU4Gm1UXL6jgl6Xxtt yscAy310pvsZD8BVMI+wAossXHfcw4W0zBzkhoVGtxGvAhxv4S7sXMERXZnXmLbC 4YpqzHI2SQ8ak9oSD449wd2DtEe3IInLVfbBmMJjqXp/BPUdJqYysfHBQlCFXzx7 +Gnzq6hraUyxMeSq7XYbttewaRKL+zR+xGRb6flJV18/9z/YS4Rpi+pIJGJn4plz sCtCPu63pWdjy5MGqEcMPCJ6Imew+A== =MjPg -----END PGP SIGNATURE----- --okGAQarU2f8A9pZu--