Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4686466imm; Wed, 30 May 2018 10:00:35 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLJzZgRSAIv3qRrx2xNdGO56cXHM/hfH0Yu0zh48hIlO3IE715wK5UW1btT09p/ei0Iit0l X-Received: by 2002:a17:902:9048:: with SMTP id w8-v6mr3571150plz.34.1527699635145; Wed, 30 May 2018 10:00:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527699635; cv=none; d=google.com; s=arc-20160816; b=RmF/ngYi1KiOd0+/tI+upvsI3BVWDZNDymToCp9KLXUQOrm/n4dj6BZ3ZXYypcwwu8 10VSv3YGsdljGIXMbCXb91yeHQCYZDPQL7JOtiIBq90Ikf/USpG5k+xdIFgLKW5l5zz+ mTmPQcuTkWbVBI0N3I7RzarC5pyhW7vKmxAun+FBpLUIlVmLCLiDk8wXEnBIoOU9i7hg smNaW/N772YCmzv92JHxSC3+PDNEsGulj/M7ZU0sz2E7H6R+TpNDEZN8KL+q0qM3Id+K 91m+lsd0LVkF7rD9ZZYMl+d6tZ3cnDLORWojlNfJW+Os6nvD1pGkmos1d5i9OlvQNzVN PYqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=rQYEfcRe3rdLMvP0FfwyxVI8xSFsGBl6hSKAbdwvrTU=; b=INisLIQse+1+qbA0+8BAob4XRHfHsALpkIyT52N+e/eYgW168O0vbYj1HIgj5CxYVV JreJqyejFZBRsBArfCY3/LqCc8XZpXptkNC4DaxndZQvgZF/yuJ7YMWwB6KLdS2XiaEq c14FEY0eJj2oGpnw9XWzFJsF7jRFsVTIg8VQZwkhNtdly7x6xV31cUMnj1L4M1qLP/nF WY9LtH8begVHX1gcpoSBq6ccNUgatHRK+sJS/Zq0pPqJSRq662WAPCwZ7ZmVthJndRdi 4luHtk3ATC71xWxgw6nYRY6qwkRl+NKgEVuVgwAdMIvdQUAfb43ibwgCzZIyfeWdVKyu WaMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=Mzt0gQGo; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u6-v6si35117142plm.99.2018.05.30.10.00.20; Wed, 30 May 2018 10:00:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=Mzt0gQGo; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753901AbeE3Q7t (ORCPT + 99 others); Wed, 30 May 2018 12:59:49 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:33920 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753553AbeE3Q7n (ORCPT ); Wed, 30 May 2018 12:59:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=rQYEfcRe3rdLMvP0FfwyxVI8xSFsGBl6hSKAbdwvrTU=; b=Mzt0gQGoQc2ImkzeJ4XITCOiK ZfxCmMb/1gV4pizU8UT4f4EfozvZdkRrk3e9nmjV2kLM15m1wutwHzz8O8aghS/Tx31uuUUwpGfdR BBPn3jiJzllYqKrrhBCpjMZVCrR87w+2+kNG396Knx44VVPQK1XNj+GHkyxWmC+YBcY2w=; Received: from debutante.sirena.org.uk ([2001:470:1f1d:6b5::3] helo=debutante) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1fO4Rm-0007XP-FI; Wed, 30 May 2018 16:59:38 +0000 Received: from broonie by debutante with local (Exim 4.91) (envelope-from ) id 1fO4Rl-0001DR-UL; Wed, 30 May 2018 17:59:37 +0100 Date: Wed, 30 May 2018 17:59:37 +0100 From: Mark Brown To: Doug Anderson Cc: David Collins , Liam Girdwood , Rob Herring , Mark Rutland , linux-arm-msm@vger.kernel.org, Linux ARM , devicetree@vger.kernel.org, LKML , Rajendra Nayak , Stephen Boyd Subject: Re: [PATCH v3 1/2] regulator: dt-bindings: add QCOM RPMh regulator bindings Message-ID: <20180530165937.GX6920@sirena.org.uk> References: <20180530150241.GO6920@sirena.org.uk> <20180530154849.GQ6920@sirena.org.uk> <20180530160744.GS6920@sirena.org.uk> <20180530161311.GT6920@sirena.org.uk> <20180530163644.GW6920@sirena.org.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="1RhGCd1AsoFHGRHc" Content-Disposition: inline In-Reply-To: X-Cookie: Don't get mad, get interest. User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --1RhGCd1AsoFHGRHc Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, May 30, 2018 at 09:41:55AM -0700, Doug Anderson wrote: > On Wed, May 30, 2018 at 9:36 AM, Mark Brown wrote: > > Yeah, and I don't think that's unreasonable for the core to do - just > > drop the voltage to the constraint minimum after it has turned off the > > regulator, then recheck and raise if needed before it enables again. > Would it do this for all regulators, though? Most regulators are > hooked up over a slow i2c bus, so that means that every regulator > disable would now do an extra i2c transfer even though for all > regulators (other than RPMh) the voltage of a regulator doesn't matter > when it's been "disabled' (from Linux's point of view). It'd only affect regulators that can vary in voltage and actually get disabled which is a pretty small subset. Most regulators are either fixed voltage or always on. > Hrmmm, I suppose maybe it'd be OK though because for most regulators > we'd use "regcache" and most regulators that we enabled/disable a lot > are not expected to change voltage in Linux (so the regcache write > would hopefully be a noop), so maybe it wouldn't be _that_ > inefficient... Even if the regulator lacks a cache we'd at least skip out on the write when we're not changing voltage as we'd do a read/modify/update cycle and stop at the modify. --1RhGCd1AsoFHGRHc Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAlsO2HkACgkQJNaLcl1U h9DTXQf/VgwB1seFzCThTskB5IXfv81dOdpaoeVGDg7V4Y/r6nAbB5uNeRkQojgl aMDgpQFnVqVBsZXktBllwQ7foPOGg8WSd0Q4IlVuQwNNf5nAFqSFy+huw0o47LJ8 x7aWjVFpLTA4XuNezN6XXwNcP2QO6ZY7lKQmXko66py8oQ7KKrktaTaG6mRXAkwf Jb/i+lr13F6TFcb71Ky4gMEx6rClG12dMIs8a7Ud/USTmibRTQZ7uEX+mG1hRfHC nsiHZ9YV+OCpIuSePcDwSzRL2CxU//EK4CLx3+Ztp2BCd7XQLk3hsO+arIuOHthH A/Zc69LtGG1ZIhBnZtGW4XjsKCOr2g== =ZaJS -----END PGP SIGNATURE----- --1RhGCd1AsoFHGRHc--