Received: by 10.223.176.5 with SMTP id f5csp792994wra; Wed, 7 Feb 2018 07:38:53 -0800 (PST) X-Google-Smtp-Source: AH8x224VCgyFLwiqVolBuS1UKaWvQT6KwgFRXcLIEXRE3v1kTKlUHFQX8pjcFWYnixJ3Rx4CcOrS X-Received: by 10.99.127.88 with SMTP id p24mr5376736pgn.124.1518017933484; Wed, 07 Feb 2018 07:38:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518017933; cv=none; d=google.com; s=arc-20160816; b=iuSVJaXBhzqM5gzCIhDXKT34CK0NwrX6+lK/3gGXKYwb86KLvi3TDvVWuzftc7XF6M HerccHTay3akXHw9+rZR3HuUedWIzMQosvZuz3ucYQOYAWCd+jJx4i5pG5R4NbWiw2Pj jIW5hBhxDzmUStYavH2gIt/D4wxAHSGBgK4kmYEip4Tpzmk8kqKDdybtTucBDxNU8DQn iUQB6/c73uAXv2HBwPwu55ARb+94vfIVt5I0XE3FtPObXttDO+CUeFPH16tRu1zHSCvg KLYiKv2nH+t9u8z611iDwDVdrsXbeZldanWtmkVB1GkifZAplyxGhHjJa6lyS911Nt3o GyWA== 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=NSSnVPForQb2cJoEoXT+Nli3FxgauVIlvP+i/3bDZOA=; b=GLD/7pkBNkQENQp6OW5XyOeMNPIvX+PADqV2ssg6oEu/t/cyumUMKWqZf6YHk5x2yN rDKGxbAyFkMRLphmRvdOymta2O1A4niD5sYjdiNfonp0kfQgtyb0OATdSN39mLj95lJx VSBoyWe0AhLtxfK7/nsHqca2HXrVviNNDr0keFBTStxvWVkK0EN4JwHedHVxH03c04Ms RRjl6g5pkkNiGvI/lHJv9YeEg/89LEHCdmtuVU4PoPRGFZCEK3VyyUHlOXrYOJL4utJD f2YJgbptKsLUJdKdZt0NzD4gEdWXgp/9Xd8quuwBa5M8zhMJCjIgwW5V8dWrxQH2gBMb kS1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=rjweC9dJ; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v5-v6si1230142plg.729.2018.02.07.07.38.39; Wed, 07 Feb 2018 07:38:53 -0800 (PST) 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=rjweC9dJ; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754685AbeBGPhT (ORCPT + 99 others); Wed, 7 Feb 2018 10:37:19 -0500 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:39030 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754368AbeBGPhR (ORCPT ); Wed, 7 Feb 2018 10:37:17 -0500 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=NSSnVPForQb2cJoEoXT+Nli3FxgauVIlvP+i/3bDZOA=; b=rjweC9dJbNe8EEgugUg3x7Yxo 9r4BHNeUmMyMp3iEQcAFbTvyKPRWPE+sesl9TcQwPU+ZbqWigCFdah5/E7UIVrhQLCY2T0COzATVw cHZZseesIWsNN+LCSw0qcM1xOo69jGZbHrFsJpXab5EV5e4gUjvDdOZQCLo2EgADoiXww=; 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 1ejRma-0001OO-Q7; Wed, 07 Feb 2018 15:37:12 +0000 Received: from broonie by debutante with local (Exim 4.90) (envelope-from ) id 1ejRmZ-00024h-O4; Wed, 07 Feb 2018 15:37:11 +0000 Date: Wed, 7 Feb 2018 15:37:11 +0000 From: Mark Brown To: Peter De Schrijver Cc: linux-tegra@vger.kernel.org, linux-clk@vger.kernel.org, mturquette@baylibre.com, sboyd@codeaurora.org, robh+dt@kernel.org, mark.rutland@arm.com, devicetree@vger.kernel.org, lgirdwood@gmail.com, linux-kernel@vger.kernel.org, Laxman Dewangan Subject: Re: [PATCH v3 01/11] regulator: core: add API to get voltage constraints Message-ID: <20180207153711.GE6003@sirena.org.uk> References: <1517934852-23255-1-git-send-email-pdeschrijver@nvidia.com> <1517934852-23255-2-git-send-email-pdeschrijver@nvidia.com> <20180206163544.GI5681@sirena.org.uk> <20180207084744.GG7031@tbergstrom-lnx.Nvidia.com> <20180207104351.GA6003@sirena.org.uk> <20180207123750.GA5850@tbergstrom-lnx.Nvidia.com> <20180207141846.GC6003@sirena.org.uk> <20180207143213.GB5850@tbergstrom-lnx.Nvidia.com> <20180207150155.GD6003@sirena.org.uk> <20180207152045.GC5850@tbergstrom-lnx.Nvidia.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="EXKGNeO8l0xGFBjy" Content-Disposition: inline In-Reply-To: <20180207152045.GC5850@tbergstrom-lnx.Nvidia.com> X-Cookie: 15% gratuity added for parties over 8. User-Agent: Mutt/1.9.3 (2018-01-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --EXKGNeO8l0xGFBjy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Feb 07, 2018 at 05:20:45PM +0200, Peter De Schrijver wrote: > On Wed, Feb 07, 2018 at 03:01:55PM +0000, Mark Brown wrote: > > I can't really tell what you're saying here. If the driver needs to > > know if it can set the a given voltage there's already an API for doing > > that as I said. If you're trying to convey this minimum and maximum > > voltage via the constraints that sounds like an abuse of the constraints. > No, what I want is the voltage which the regulator will output for a given > regulator_set_voltage request taking constraints, regulator step etc into > account. Knowing the range of the constaints is going to tell you nothing useful about that, it has zero information on steps or anything. The way to find out what voltages can be set is to enumerate the voltages that can be set through the existing API and then if you want to set a specific voltage that you've confirmed is available you can set exactly that voltage via the normal voltage setting interface, no need to provide a range. --EXKGNeO8l0xGFBjy Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAlp7HSYACgkQJNaLcl1U h9BRDAf9FdaH1tOaZcNU2t7spzIT8bqpr3eAGIuF9GdmskpVdhVYL2z/iik+AAWA 5dvU5+U4UfexPA6KB0lZFVASav5z8XuUdk+t0GH45MGYIramZTSm6ouCpQXor7YD DtVtWRw0oNJIgBesUpC3Vfa0JVpuwbkce4GzvmlzLMB/Jd1nEJkjxJm3l14k997k njGXu7R/9hI1uwLFSwoMdDFQME49766JgVrp5cVOySWbK2c4c/l9+iL4Xg+TuGpP REVfT2NC4ZNWH7BlqtdUqdwzO1bE9F+WaVh/0bfNbtrHgHV+0XWYNNv2IFTDtYvl pOPsqdXTfJ8HlKeSjw7f0SqZdWU52g== =lJXf -----END PGP SIGNATURE----- --EXKGNeO8l0xGFBjy--