Received: by 10.223.176.5 with SMTP id f5csp1709872wra; Thu, 8 Feb 2018 02:06:24 -0800 (PST) X-Google-Smtp-Source: AH8x225TX7FDvMS74Dau2gd6V5+caRMqOg1H2ny+FPT/Emy3RnM36T4rulXM8o4ZXuvfwe2J9jO9 X-Received: by 10.101.82.1 with SMTP id o1mr91599pgp.259.1518084384339; Thu, 08 Feb 2018 02:06:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518084384; cv=none; d=google.com; s=arc-20160816; b=XUQ1BzMTXpV7vuDEQXGjXyL+cv5OFAgTZCh0DsI7SBu9auhRuYc6VEI67WsOO8TtMm PKIS9ukH8T5Fc20SSCK5+g+u7LRcOPp9QAvnuzT0ZguvUPcZI0GiZ7v3BwKq85eH+q4f H38wJ+/+0i1t/bqV3+i+dnC2kbB26fDHAWHRjsn6cXfVr+CKXyTv6OJhjlbLkO6YdWmh npsDsVfs4ZS8TDU//Sqo0h69zIJZLvPBhSRZYzPnMDluj2VbAGmRhyihNYWyhBT1rE+I WF/vpKLjFLeWldMszCJQqegOVJFHSEt5tgg9kHr/wzUrSHjz10a4SLgUbfmYARdBZpNK ESLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject:arc-authentication-results; bh=+a+4mpIPMUYGw6iAQHiyp4/lvoZXROtbHgkXr1P6VGE=; b=e8ABEd2sgiqlLsPRDOfBzgQ17RiM6YoQmAv4oiaciHa1pVlU2ORGUTtbJhMIlG8Isc Sqd+2oRBazQ1qworV/pADr3f1Vwwlr2MFDqiERkpInF+5Iq+4sfdZ4JCtxm5X+Y5iOUO IITVH26MHOQJioQ4wcSPOFGhJUw13lH4Lx1AIvooMzbROiSFesDXLZqC2/yqosZA3sLK rtOskX4IlUataedwkrfNrFgDgCZULT9Gxzr8qqjH1wQrcdm1DXR9PrJLXQaF/9vlXUrx aGQQlwvbi1Vi6UMQ20DPsz2/kggKaP227DGCS7vWY6KcX0WU/woZ/wizi1n82ylGJHSn NnWw== ARC-Authentication-Results: i=1; mx.google.com; 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=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x12-v6si2575498pln.126.2018.02.08.02.06.10; Thu, 08 Feb 2018 02:06:24 -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; 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=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752135AbeBHKF1 (ORCPT + 99 others); Thu, 8 Feb 2018 05:05:27 -0500 Received: from hqemgate16.nvidia.com ([216.228.121.65]:17728 "EHLO hqemgate16.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750877AbeBHKFY (ORCPT ); Thu, 8 Feb 2018 05:05:24 -0500 Received: from hqpgpgate102.nvidia.com (Not Verified[216.228.121.13]) by hqemgate16.nvidia.com id ; Thu, 08 Feb 2018 02:05:34 -0800 Received: from HQMAIL101.nvidia.com ([172.20.161.6]) by hqpgpgate102.nvidia.com (PGP Universal service); Thu, 08 Feb 2018 02:06:06 -0800 X-PGP-Universal: processed; by hqpgpgate102.nvidia.com on Thu, 08 Feb 2018 02:06:06 -0800 Received: from BGMAIL102.nvidia.com (10.25.59.11) by HQMAIL101.nvidia.com (172.20.187.10) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Thu, 8 Feb 2018 10:05:22 +0000 Received: from [10.19.64.176] (10.19.64.176) by bgmail102.nvidia.com (10.25.59.11) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Thu, 8 Feb 2018 10:05:17 +0000 Subject: Re: [PATCH v3 01/11] regulator: core: add API to get voltage constraints To: Mark Brown , Peter De Schrijver 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> <20180207153711.GE6003@sirena.org.uk> CC: , , , , , , , , From: Laxman Dewangan Message-ID: <86cd40ac-d255-f4b9-87cb-0cd34efba7d8@nvidia.com> Date: Thu, 8 Feb 2018 15:34:56 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <20180207153711.GE6003@sirena.org.uk> X-Originating-IP: [10.19.64.176] X-ClientProxiedBy: DRBGMAIL104.nvidia.com (10.18.16.23) To bgmail102.nvidia.com (10.25.59.11) Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wednesday 07 February 2018 09:07 PM, Mark Brown wrote: > 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. Hi, 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. I dont know other usage when I added this API. May be Peter is needed here.