Received: by 10.223.176.5 with SMTP id f5csp754827wra; Wed, 7 Feb 2018 07:03:40 -0800 (PST) X-Google-Smtp-Source: AH8x225JOJVC4CWvYlXeqj7goXMZXH2u/K3tDeZK40eythSXwKo2L14h59wQtO7Blpc4zx0tXvBj X-Received: by 2002:a17:902:b496:: with SMTP id y22-v6mr6212882plr.206.1518015820644; Wed, 07 Feb 2018 07:03:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518015820; cv=none; d=google.com; s=arc-20160816; b=A1G/cdsRe7XQ0V9p1ALCVCLDC3qD5J5YE0Losam2XVQzbbXyrgtaU2U05txjGLEhwU GEpAtHnFrRrCL9ka3TLZgDm0GIqc+Dre1kaCqsqXyLE4VdgBHQBJXF7trlHUPlvyLpJB RnUEAwh0wZZffgIAHHBzLnVjIFJJi0S17Kq2istOs359JoTBqV8BxSO8b90H6hHMKPnf 1Cgsu/8FYHC5FMyBuGKYQ4IXDYqfS0lIamhcSWT+ytm4MqoQMFh/lZi/ba8+qjrCZo0H Y9aSbL/jykkKc2pngytW2qv05P5KRQH9omL4RnY/6975plUhkuK9UgCHct2E7RkC0sBP G9Pw== 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=00jaRarItXo8BCsty1Qn1AW7qIjOPFs+M267/IBEFtg=; b=oE5IgtJ8A6teJq/iJltfEgdo2y4dQ1u4lWv33mvGyeKZVW9aM4HrCu7GOGn1c1wSgK JBWAvYfP4zQld+sWIb6NkZiQV5KR2TmwrcDMzOsKPGZAIaNDBegkQzPkEz/Z4qUTNaRA xHCdmz77E8srdrg71lZ6WqWI9Zi8Kg0KNQNXf3LnV+48Fvagciidv0K+MczCrlcvocb3 +UP/xqQW/4i9A4IwyOAY/7lNI4QL9Nn0eTtUVrAxt82xKwMtpgfe1Ge6F39yvEr+aDMv mAJRwHyHQ5MmHCI5pbuJrmxEgtfyGycGNf70+oJl/Ob1X8b+jLG21fK5lijjXh1HV7+i GdBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=fGj9CCw4; 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 g31-v6si1177386pld.175.2018.02.07.07.03.26; Wed, 07 Feb 2018 07:03:40 -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=fGj9CCw4; 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 S932091AbeBGPCD (ORCPT + 99 others); Wed, 7 Feb 2018 10:02:03 -0500 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:36316 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754108AbeBGPCB (ORCPT ); Wed, 7 Feb 2018 10:02:01 -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=00jaRarItXo8BCsty1Qn1AW7qIjOPFs+M267/IBEFtg=; b=fGj9CCw4mrutKyZFIC8Sl599A ltlkNs7ZclzYySvJRxcjScZmGwsJPL+qqdsAQ6phzO/CUwxvNl9stUQ1f5bcJSTds1Uy7Tf9wH725 PQ2ZeKpvAJQ+yhq7S9NzcGPxDjXPouITyAEXrsCr28GvpHt9a8oi6eqqlnO0ZWng2SqiQ=; 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 1ejRES-0001KZ-3U; Wed, 07 Feb 2018 15:01:56 +0000 Received: from broonie by debutante with local (Exim 4.90) (envelope-from ) id 1ejRER-00019y-2d; Wed, 07 Feb 2018 15:01:55 +0000 Date: Wed, 7 Feb 2018 15:01:55 +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: <20180207150155.GD6003@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> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="1sNVjLsmu1MXqwQ/" Content-Disposition: inline In-Reply-To: <20180207143213.GB5850@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 --1sNVjLsmu1MXqwQ/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Feb 07, 2018 at 04:32:13PM +0200, Peter De Schrijver wrote: > On Wed, Feb 07, 2018 at 02:18:46PM +0000, Mark Brown wrote: > > You're going to have to provide a much better explanation of what this > > is doing - right now it seems like an abuse of constraints. Client > > drivers can already determine if a particular voltage they want to set > > is available via regulator_list_voltage() and so on, that's what > > constraints are there to set. It sounds like you're trying to use them > > for something else but you're really not explaining your use case > > clearly. > There is no way to query what voltage I will actually get for a given input I looked at patch 2. It looked like an abuse of what constraints do, and had zero explanation of why it was doing what it was doing. In any case we need the regulator code and changelog to be clear about what the interface is for and why it should be used, that's not happening here. > voltage. If you read drivers/clk/tegra/cvb. (you did do that right?), you > will see that there is a minimum and maximum voltage defined by > charaterization which needs to be capped to the regulator generated voltages > for those points. 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. --1sNVjLsmu1MXqwQ/ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAlp7FOIACgkQJNaLcl1U h9Aspgf+MssimMSW7Qbj2UivzOJ4IsFXPul0dhXEZnBgvN+DwYbMkV8MG7g1bWdr M7Z0LE3RLyd/oVzJihAA99ROWs1lFlwFVzKphlqMcMHU9x2ZzYfjJwhnlwNP9AjL SSGfYCyaD6BqfCF8aEWmpe0XXu107XivI7BYlYU5TBjbCh8NWMBDBXZjdC68PON+ /bKFnhujKGW6kV+fksmorZQ4u3Tz0LXFJRQc3shsU8Aw4q+Jh2kirmXYP8Iu8Cp3 0xRE49lwrhw//uwg61C7PY9VHzns/vFwH7goskLWhGVjbmmscz1qmnz0dQ9xrIjE TMZiVXKZonoqEXuJfWyDlTV6fCZhHg== =2qiR -----END PGP SIGNATURE----- --1sNVjLsmu1MXqwQ/--