Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4666792imm; Wed, 30 May 2018 09:37:30 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIXoSmh9TG8JguBZsb9vDWwtLKZBQkdsta5xcDsf/O12EOmKnu3z3Wiys2x++6Pjv/93WQR X-Received: by 2002:a17:902:8c83:: with SMTP id t3-v6mr3505017plo.357.1527698250720; Wed, 30 May 2018 09:37:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527698250; cv=none; d=google.com; s=arc-20160816; b=DRCxngAHXrkfIO9pJRxG+1OQ2vDZMCkfQdqYl7PSaHbZRZ7mFDkyofp2fV97b3XBCL t5FJKp6LBvm/zYv7dfBpVmVr7iQI6oWUVA63rogxP6sUmGTAIkvxhfjWbxIGcClcvK5P XQW5wOgAveH+DUiO4PBuwCk5GtYxgErOx8lco+OJ59JWNENLuV0+QyR/fzQg30P4+Xi2 IXELg5yZ4+BhZ9Di2J7MqBfgSPgVbECek4kPQZ5TLNA3mlfn+6Ao+pydI7IrXJx5/674 VolWofA1uvZg9xuvPsJL7LWetykduiLjWwvXDYwGAul9wtt7UJPZyLkFqED4TzUFUH0K UG/A== 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=xp/FWWn146nxrcsdXufcIzDWDpp+zFMy+zmlA4XNv9k=; b=gX24H5SWd+OZND2KjeMmbALflZLjPqoi6P6WtlfiY4oqlePt2b8Xq1UNurS5pyWbp2 CsGwheuNcuyUeEHBcttB/llfdCpVsiQ39UKdLl1t4bGBFPBE21CI4rBVF2d5ditxcV/5 ZaR5NgZ5GbXxsvp2vChh3bnYeKtT5YGbWeeiSjegMst9OOraLLAld5SJt+aS0mdrBSO4 rxtZQVeeUvw+Tj6wmlyzpvxyRkOS7Aflzyun4zEjCR1hy617tv/z6pc7G8Z7c8EVdYCM gpMxxUaExsKKqXQP22mh3awcdxTGCQJF6c5uEvsf0eoR0K5aogg3YSN9ab6h3dCvB+i/ cm7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=Gsgv24pW; 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 t13-v6si14571419pgs.242.2018.05.30.09.37.16; Wed, 30 May 2018 09:37:30 -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=Gsgv24pW; 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 S1753560AbeE3Qgw (ORCPT + 99 others); Wed, 30 May 2018 12:36:52 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:51954 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750881AbeE3Qgs (ORCPT ); Wed, 30 May 2018 12:36:48 -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=xp/FWWn146nxrcsdXufcIzDWDpp+zFMy+zmlA4XNv9k=; b=Gsgv24pWP8GWLSbjXwzE6tX2z 8a3yi7Va52l8G0ZiZPHtcVnvXu+DBsxT3S5nbNnbT60brEPmbLW7IWZHWk5gWl/3tWW5c1NHG63Pt WsnF9ODa2PMuO2A5N5Xfag8EomBTXiV2zBxMlvI7Iu1BkSwkoVmHrw+LN74vQXh/WHS1M=; 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 1fO45c-0007WV-M2; Wed, 30 May 2018 16:36:44 +0000 Received: from broonie by debutante with local (Exim 4.91) (envelope-from ) id 1fO45c-0000Li-89; Wed, 30 May 2018 17:36:44 +0100 Date: Wed, 30 May 2018 17:36:44 +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: <20180530163644.GW6920@sirena.org.uk> References: <20180530093701.GD6920@sirena.org.uk> <20180530150241.GO6920@sirena.org.uk> <20180530154849.GQ6920@sirena.org.uk> <20180530160744.GS6920@sirena.org.uk> <20180530161311.GT6920@sirena.org.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="aXNiKu4lnbRqA5kZ" 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 --aXNiKu4lnbRqA5kZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, May 30, 2018 at 09:31:55AM -0700, Doug Anderson wrote: > On Wed, May 30, 2018 at 9:13 AM, Mark Brown wrote: > > If we're just going to use the most recently set voltage then hopefully > > the hardware already knew that, and it might not be the lowest available > > voltage if the last consumer to get turned off was holding the voltage > > higher. > To circle back to the original point: the problem is that (IMHO) the > hardware is doing the wrong thing by still counting Linux's vote for a > voltage even though Linux also voted that the regulator should be > disabled. So basically we're working around the hardware by > pretending to vote for a dummy lower voltage whenever Linux wants the > regulator disabled. From Linux's point of view everything works as > normal--we just tell the hardware a falsehood so it doesn't count our > vote for a voltage while the regulator is disabled. 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. --aXNiKu4lnbRqA5kZ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAlsO0xsACgkQJNaLcl1U h9Agtwf+I81NatfMRn647f4v1D+5TzY5LKIT63m6HP7ZlC6S1WdaLKEZ+TU2wnWk fcuCPLxowzFTwBRLgI3yg258uT9eir/f5m0jteKact4i3o4uAzpzXtgb6pMMvnug k16LIeX2My8QeeJFSaKOH9UPhlavA4JI9gZo+yNje3b7oO0fuTlcJcQp7QSWfCAn aEcEO/oovw6qrNyG9+U01J3fjkMtWvAAaX75tErSeswLFw5OAzyM6qrRfzwDHHgN ySW29niz7c/X5Vqi+FUcRG8IBeBNJwzQdXhRvYH6chiiwmrhcVgIgw9ztMu/bXas 1V5YuFilrVaenIaenzesMJ9l3r5KRg== =KkMi -----END PGP SIGNATURE----- --aXNiKu4lnbRqA5kZ--