Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp682742imu; Thu, 13 Dec 2018 02:39:16 -0800 (PST) X-Google-Smtp-Source: AFSGD/XerUhVXYYuCULW/h/rdBbPSTIQGJKWko4rqh4CO3kMNqdJ/GzKkizuP+uXd2EzV2i04xWV X-Received: by 2002:a17:902:70c6:: with SMTP id l6mr23734567plt.30.1544697556722; Thu, 13 Dec 2018 02:39:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544697556; cv=none; d=google.com; s=arc-20160816; b=jHxxuBIjfkqQtmpN/MMLOzSURVwqRoYDTtDgwZhe2InR1MkBJcr/WSdDfJTsXpUHcS qOsTNd4RLE8X4nQjZewmBkexBLnkG6hhvxTSMx4l81hg2hEXKCoIip8l7HZx74GnGUZq ZctsIkSlCbALl+/eYQ2X/Z/qQF6nHGD1TiyHm+u3R82QWR5UtOMSs1zPgJX34D3mX7PV JFBflSBXlVphNNzqkHoWBlyFivBMXMRZy6g8GCKZbovr1pHf80qrwCpnlJ2PW5RUXvno pjLEoh/Q50Kw8kkkSfU9uD2lmM/Lg7lLHN1Fr6ZEdoRTsh9KIR3pM57oEwXCfBmJbXdO 80AQ== 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:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=iKiwjGfARZk4O9+55Jm1opFntGA81I+ogtl3oHtVCWM=; b=m7oH/i9WkY8Q0jBANTKuiW6wMs13nYtKuvMUyNaGyECp4Bu/4Prc3KOJs2ESQkITE6 1V8FpnnzGMBWbSOwDgKaImDL9FrivxhddU6E0s5I0uUAo+bmZmjWKslFJGVXyJxEdBSe WdrOvZXSlDZWvQ7fBnmE5+PNb16MiMS/Qp8tqjZy+MZiwxQBBolribb7qRhtalcDjG7B wZxdFVi7iwr8kX7Eumta+xhs00gmsMbncfz0D3H60rVUEVo3W21KVCTnQmJ9OOHaJzgI wOkpZMQefI97y6fmAFtpcejWvnvP+s2I01HHEkpxsRDFol0UX7VH7nAZfBI7bkViG8p6 Cy4Q== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 128si1374686pfe.4.2018.12.13.02.39.01; Thu, 13 Dec 2018 02:39:16 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728598AbeLMKhH (ORCPT + 99 others); Thu, 13 Dec 2018 05:37:07 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:35447 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727374AbeLMKhG (ORCPT ); Thu, 13 Dec 2018 05:37:06 -0500 X-UUID: c7018cb76d6f456486b61b52de923e7e-20181213 X-UUID: c7018cb76d6f456486b61b52de923e7e-20181213 Received: from mtkcas09.mediatek.inc [(172.21.101.178)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1319961276; Thu, 13 Dec 2018 18:36:59 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs03n2.mediatek.inc (172.21.101.182) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 13 Dec 2018 18:36:52 +0800 Received: from [172.21.77.4] (172.21.77.4) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Thu, 13 Dec 2018 18:36:52 +0800 Message-ID: <1544697412.6417.13.camel@mtksdaap41> Subject: Re: [PATCH] opp: Add API for getting voltage from supplies From: Nick Fan To: Viresh Kumar CC: Viresh Kumar , Nishanth Menon , "Stephen Boyd" , "Rafael J. Wysocki" , "Matthias Brugger" , , , , , , , , Date: Thu, 13 Dec 2018 18:36:52 +0800 In-Reply-To: <20181213063850.c5nu3bbe7gm647ca@vireshk-i7> References: <1543906760-15631-1-git-send-email-Nick.Fan@mediatek.com> <20181204082158.rb7uzdiwmcotwoxh@vireshk-i7> <1544445372.3502.42.camel@mtksdaap41> <20181213063850.c5nu3bbe7gm647ca@vireshk-i7> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-TM-SNTS-SMTP: 78CCB12E74F777C9693E009A464E04C08DD8F271AD16BE63588021EC15F8549E2000:8 X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2018-12-13 at 12:08 +0530, Viresh Kumar wrote: > 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. > This new API is suitable for the users that required to access for multiple regulators. And I am one of users who uses this API, but I am not able to upstream the GPU kernel driver which uses the new API. -- Nick Fan