Received: by 10.223.176.5 with SMTP id f5csp2001875wra; Thu, 8 Feb 2018 06:59:49 -0800 (PST) X-Google-Smtp-Source: AH8x225itY3aTEyhqnJzLO2OHRzP8q8t81GslRS9Vvugf2nP5IcIcv1coURewTE69SmEkHN0Nol7 X-Received: by 2002:a17:902:67:: with SMTP id 94-v6mr878973pla.183.1518101989752; Thu, 08 Feb 2018 06:59:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518101989; cv=none; d=google.com; s=arc-20160816; b=UloxDzhj/0u/aJI5INfo3gZ+jPyPaE/h0y8CMvddLFCQJrguYF/MGgP7xNkFVRbnCe 6YAANW8cWArhs8WT+Z4buPxsV+FBGiHtzKAS11QYsavk1JoTAQdlSyUmBvEkJbZLKQZI asq1jhMEEaknFiaUcOew7V3hqTq4V96Rj6FyYlcM2acZ58x0hqh+bxEaDJEKvxuTG4/g XiPxPjV/woC3XP8yt1+m5YIHnLwyXp9xGi2FVL/BQOOC7OEBMgJlnmAYNIBmsnHFk5HL d9daIfFiolWzw6zxJewKyTFSZ0ehmGiCdrwpsQkJTd34zgKCDQcB2VYsfkoAouNR19kr 2RFw== 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=YNIvSz5sB9uf64GLC/vUGPxGFRpwnsZwsvohT9k75gw=; b=V1tL+x6ybYhl0wwBQKqew+1QLbM9OKOBZ+oZ9se8gnOaBPqz9csUfGmw+Vp3/5rGrr JpYfEA19y/C+1lg54UsuSVpv1cY5BCbwm/Fd+nQpz/IOaobMVclUL/2WDO7D/HCtvcpK cho90KOSZVVFEmJ5hA7Axp8dkdKpV14GB2tlWpiaphOn+RBqrJiFowlxO+Q8p/qulDpQ Ipj1qER9lRLOfYhit90UEBrMjJ6AeoDe098mFoxoWjg0+E6Rz94XjHMtl2FELtP46T2v SYjxZmzmOWNc4OK1WpFDGlrRhx+b7ZGWYX8uCkT+wd43gn2NHrFnV5HKnMdRFoYS9zND JWuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=o3qa5Fq3; 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 d15si15584pgv.822.2018.02.08.06.59.36; Thu, 08 Feb 2018 06:59:49 -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=o3qa5Fq3; 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 S1751946AbeBHO6q (ORCPT + 99 others); Thu, 8 Feb 2018 09:58:46 -0500 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:47672 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750882AbeBHO6o (ORCPT ); Thu, 8 Feb 2018 09:58:44 -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=YNIvSz5sB9uf64GLC/vUGPxGFRpwnsZwsvohT9k75gw=; b=o3qa5Fq3FqkfIGKBp8dlMH1M1 1BLF7WqJBZ7Cb0LdLD0zsIpYeym1yjn1YId9DPnrYKjgjRVI1d0aN1wGjh4ocq+5dPifrc1TL4I66 bJYKvKarvnmvjN7/jwuRpq/fDUGFFAD+aYnSagcm6sWaOlT/RkM9ROCzJ/MI67XKwQMxc=; 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 1ejnem-000337-8b; Thu, 08 Feb 2018 14:58:36 +0000 Received: from broonie by debutante with local (Exim 4.90) (envelope-from ) id 1ejnek-0007Hz-Re; Thu, 08 Feb 2018 14:58:34 +0000 Date: Thu, 8 Feb 2018 14:58:34 +0000 From: Mark Brown To: Laxman Dewangan Cc: Peter De Schrijver , 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 Subject: Re: [PATCH v3 01/11] regulator: core: add API to get voltage constraints Message-ID: <20180208145834.GA27520@sirena.org.uk> References: <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> <20180207153711.GE6003@sirena.org.uk> <86cd40ac-d255-f4b9-87cb-0cd34efba7d8@nvidia.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="jRHKVT23PllUwdXP" Content-Disposition: inline In-Reply-To: <86cd40ac-d255-f4b9-87cb-0cd34efba7d8@nvidia.com> X-Cookie: I'm wet! I'm wild! 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 --jRHKVT23PllUwdXP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Feb 08, 2018 at 03:34:56PM +0530, Laxman Dewangan wrote: > I added this API in downstream for the purpose of finding whether rail > output can be changed or not(fixed) based on constraints. > If min and max is same then it can not change. I used this information to > set the pad voltage of SOC automatically. That's a reasonable thing to want to know. The way the API wants you to ask that question at the minute is to check if you can set the voltages you might want to set and then if there's only one possible voltage you can conclude that change is not possible. I appreciate that that's a bit of a long way round to do it, the thinking was to try to keep the client drivers more robust in cases you can change the voltage but not to all the values the driver wants. I'd consider relaxing that and having a direct API to ask about variability (just as a boolean) since it does occur to me that this can be a useful speedup during init but I need to think. > I dont know other usage when I added this API. May be Peter is needed here. --jRHKVT23PllUwdXP Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAlp8ZZcACgkQJNaLcl1U h9DXJwf8CqkMIWic5ktqMvXm7+Fipc3AtSZRxkBTPVWCWwoulvW+g8VEg+WApNPy yPyv8tJocgRVEXT9MezcPxXPYlaR9O8rWetE+0y1Az4hXY2Q4O7nZagBlA4MEADb uKFDwr8yFLbByfCVtQrNZrgVL+FxMWubfdL08IgyK1/fNqc4E3DJdX10pkaqn/hL 5ku7ONEk1Y6zRir9cU1Elp9WN9l4Myy+kYZluzoYWUHyqdo3j/IRFPVNMQt2niKQ N8d3UXjDos5l498im3zDbfas0NYf4pwKu/jrR1OTyx4vMIzjSVloXe8sN38dibFp Hs4wXK5N508UNu4YnuiiWB77MB1S5w== =Jk69 -----END PGP SIGNATURE----- --jRHKVT23PllUwdXP--