Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp506270imu; Wed, 12 Dec 2018 22:40:03 -0800 (PST) X-Google-Smtp-Source: AFSGD/XlEId7IrdHIkPBO911RCR70P9PxTcLlGKi3gho/ei0+maSC4DZYf6d8wmeSZX2AxpUDKFe X-Received: by 2002:a17:902:584:: with SMTP id f4mr23276569plf.28.1544683203828; Wed, 12 Dec 2018 22:40:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544683203; cv=none; d=google.com; s=arc-20160816; b=nB86B5ebozy89DAtReJHMngB1xKONFPWusW3d0V+xgukNXPPyn9OLW/LlObigJ3MtR RmU0CkcjQZaENz4OoYfUQ3E/aRQSW7YwslCV3swoT/iTRyhoCjpF6s6ahm7XEbBhibGj CyJ+8MPf+dJUx5ts0yuvBbxt1zjKIoolk/8uTYomMwkJsXp4eTmiWWgqSPdqu0sxWXRA x8/AMdoL0Gw8QYxSs7sn/pSbkznp48lRrYB5fDrRKb7g54HiE4Rw33dFpxXYiQwxCysQ i2lGzAmioZzbWrQ+KpnJeGV4yR2tyN4wvdSNICbrFuGD4JCkwcVxWifr7oXKz9u9Sbh9 I25A== 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; bh=y2kHRCe58c9v46VIIcMa9fm4dQXvC8hNN00ujy31Qaw=; b=GG4DpWbhFxuidtBUuXPfbT7C4SJKeTBPQUCfiDijGSAowDMwwSUpqBPuxGLRCZdEaD yATbk/4rW5KuoQ4yN5wMGLt9wpIG05dXj0OYDniqcfqhHYcWdmDht8URch2oYXXbWQW5 YLFXONXEvrNbEdbvL+Sd1VLrGIHcWPrpbEzdCQVBiWNJOSgsVcPGCCEteiVWg1adjKUf Hdrz65B9B0qAMT21AbCR/WzC4Jw523GkVycGgumnd/dOj4bzFmqX74R6w0WaFnVA05ex vbZ+L6tT00CyUzLxcEqT01NOTLEcuuyniBrH7gaacDVZSI1YL6nN54xp56chPYVApQpT RIhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Pp6jCjzS; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w7si859155ply.421.2018.12.12.22.39.48; Wed, 12 Dec 2018 22:40:03 -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=pass header.i=@linaro.org header.s=google header.b=Pp6jCjzS; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727065AbeLMGiy (ORCPT + 99 others); Thu, 13 Dec 2018 01:38:54 -0500 Received: from mail-pg1-f196.google.com ([209.85.215.196]:38035 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726895AbeLMGix (ORCPT ); Thu, 13 Dec 2018 01:38:53 -0500 Received: by mail-pg1-f196.google.com with SMTP id g189so570353pgc.5 for ; Wed, 12 Dec 2018 22:38:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=y2kHRCe58c9v46VIIcMa9fm4dQXvC8hNN00ujy31Qaw=; b=Pp6jCjzSOVArDoqkbLaWwwgOxbGhlp4LFZpghBSlTWS1qwpEZl3GiARupGL20HK4y6 aSlS3p0+z6jSzVlQ82f9m8BaqX3UUo7vvIjd56dk5efmTzJdIfqHtU4t5F2TsLi9BiRg w565YsTqR9Z8Ozx0GL4yVG1vNwo1y/oCRcHg0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=y2kHRCe58c9v46VIIcMa9fm4dQXvC8hNN00ujy31Qaw=; b=FdRXSnVsvlj7sxvt9WAsSeo/dMBUJKHv7+eAPJxy4ymTZSMvK/vIJLPbVmKezIHwMY 2jLlNGgwFwDaX0i9zXVUwKiAKLtIAxYYJtUQA2slo4qKDwhaTGHO0tnpAnp42kaqu0Q0 6sxkBSzqkBRD+tzLalSqbxBkR/QVGfElbgtZIsXAsSy2SWbYzqFyMXWhIIC+qcdgyhlt 0oMl/xdi7LeT3JgLxRPdGBW8XHirUkH2MlkMsK/pa4vrKvdLTwCenDloPx2PUQVWnST7 85Mxp0VDLJPIByLhNxRQQvQc6vS7foGTcKABqk0aC8+l883a1Ea7fH7+yfBYKW9j8DlA JtcQ== X-Gm-Message-State: AA+aEWZy+wfcD+Q2JseIot9EEbYhy94+wvr+1DC7D4yIqBNaGCObadXA TpzT8WjSyRIOd1vSEELKXfpHbw== X-Received: by 2002:a63:ee0e:: with SMTP id e14mr20522058pgi.8.1544683133055; Wed, 12 Dec 2018 22:38:53 -0800 (PST) Received: from localhost ([122.172.23.29]) by smtp.gmail.com with ESMTPSA id w185sm1188877pfb.135.2018.12.12.22.38.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 12 Dec 2018 22:38:51 -0800 (PST) Date: Thu, 13 Dec 2018 12:08:50 +0530 From: Viresh Kumar To: Nick Fan Cc: Viresh Kumar , Nishanth Menon , Stephen Boyd , "Rafael J. Wysocki" , Matthias Brugger , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, srv_heupstream@mediatek.com, tfiga@chromium.org, Chiawen.Lee@mediatek.com, erin.lo@mediatek.com Subject: Re: [PATCH] opp: Add API for getting voltage from supplies Message-ID: <20181213063850.c5nu3bbe7gm647ca@vireshk-i7> References: <1543906760-15631-1-git-send-email-Nick.Fan@mediatek.com> <20181204082158.rb7uzdiwmcotwoxh@vireshk-i7> <1544445372.3502.42.camel@mtksdaap41> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1544445372.3502.42.camel@mtksdaap41> User-Agent: NeoMutt/20180323-120-3dd1ac Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10-12-18, 20:36, Nick Fan wrote: > For the users who only use one supply, they can use > dev_pm_opp_get_voltage to get the voltage data from an opp. > But if the users who use more than one supply, they will need this API > to get their voltage data from OPP. > The users should know about the supply count while creating opp table by > using dev_pm_opp_set_regulators function. > By using this API, the users can get the voltages by using index to > specify which supplies they want. > > The following is a simple example to get multiple regulators by this > API. > for (i = 0; i < regulator_num; i++) > target_volt[i] = dev_pm_opp_get_voltage_supply(opp, i); Fair enough. I couldn't find anything wrong with the patch. Will it be possible to send this patch as part of a series which uses the new API ? So that we are sure of somebody using it eventually. -- viresh