From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_PASS,UNPARSEABLE_RELAY,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DAEE1C10F0E for ; Sat, 13 Apr 2019 03:36:33 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9CD8120848 for ; Sat, 13 Apr 2019 03:36:33 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="VB4zUWPs" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9CD8120848 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=mediatek.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Date:To:From:Subject:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=hstP4lM68A3zUnnJaWLqqbwHto9CUHRN3JvYxrktLyo=; b=VB4zUWPsGs9ovs 6y39VZds2+Ql2m3HAh0WnvLfQZa2PMnyWbQo0NS8RqMDCtNYS4DO/BZEfaQMxHCBYGv8qbnaMrURb MWkaAwjoT/BuNATlZJXMMJUX6pdlklf78ByLCCRONSGqbnSdXxLkGztTiX0BHY5Fg2c3mt3I1JAKq CMmckbSNmpN3LAQKzEkoijrAL6u4v/QOhzeF/D6YPp5ICbIAc3uHn0u1Vz9BqSFwOjXxdYNUVA2oW 1zydaUbiae8F8b8I0Zwn6zBVdRyH1Z/ax5VfdpdQWZIE4SOCzoPL4Syv5GgE9tzpwt986n/INedL/ 6vXfAwck5rwVESs0zgdg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hF9Sv-0003Pk-SA; Sat, 13 Apr 2019 03:36:29 +0000 Received: from mailgw01.mediatek.com ([216.200.240.184]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hF9Sp-0003PO-Pj; Sat, 13 Apr 2019 03:36:27 +0000 X-UUID: e9c2dbfb5b2449c1be374ab26354fdaa-20190412 X-UUID: e9c2dbfb5b2449c1be374ab26354fdaa-20190412 Received: from mtkcas66.mediatek.inc [(172.29.193.44)] by mailgw01.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLS) with ESMTP id 1991822798; Fri, 12 Apr 2019 19:36:19 -0800 Received: from mtkmbs03n1.mediatek.inc (172.21.101.181) by MTKMBS62N1.mediatek.inc (172.29.193.41) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Fri, 12 Apr 2019 20:36:17 -0700 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs03n1.mediatek.inc (172.21.101.181) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Sat, 13 Apr 2019 11:36:15 +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; Sat, 13 Apr 2019 11:36:15 +0800 Message-ID: <1555126575.14109.4.camel@mtksdaap41> Subject: Re: [PATCH v2 2/4] opp: add API which get max freq by voltage From: andrew-sh.cheng To: Date: Sat, 13 Apr 2019 11:36:15 +0800 In-Reply-To: <20190401023047epcms1p888e2dba45fcbc1de98d71d8a37acb976@epcms1p8> References: <1553841972-19737-3-git-send-email-andrew-sh.cheng@mediatek.com> <1553841972-19737-1-git-send-email-andrew-sh.cheng@mediatek.com> <20190401023047epcms1p888e2dba45fcbc1de98d71d8a37acb976@epcms1p8> X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190412_203623_835402_7925B5AF X-CRM114-Status: GOOD ( 10.46 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , "devicetree@vger.kernel.org" , "srv_heupstream@mediatek.com" , "linux-pm@vger.kernel.org" , Viresh Kumar , "Rafael J. Wysocki" , "linux-kernel@vger.kernel.org" , Chanwoo Choi , Kyungmin Park , Rob Herring , "linux-mediatek@lists.infradead.org" , Matthias Brugger , "fan.chen@mediatek.com" , "linux-arm-kernel@lists.infradead.org" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, 2019-04-01 at 11:30 +0900, MyungJoo Ham wrote: > >This API will get voltage as input parameter. > >Search all opp items for the item which with max frequency, > >and the voltae is smaller than provided voltage. > > > >Signed-off-by: Andrew-sh.Cheng > >--- > > drivers/opp/core.c | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++ > > include/linux/pm_opp.h | 8 ++++++++ > > 2 files changed, 63 insertions(+) > > > >diff --git a/include/linux/pm_opp.h b/include/linux/pm_opp.h > >index 24c757a..57deef9 100644 > >--- a/include/linux/pm_opp.h > >+++ b/include/linux/pm_opp.h > >@@ -102,6 +102,8 @@ struct dev_pm_opp *dev_pm_opp_find_freq_exact(struct device *dev, > > > > struct dev_pm_opp *dev_pm_opp_find_freq_floor(struct device *dev, > > unsigned long *freq); > >+struct dev_pm_opp *dev_pm_opp_find_max_freq_by_volt(struct device *dev, > >+ unsigned long u_volt); > > For the symmetricity, wouldn't it be better to name it > dev_pm_opp_find_volt_ceiling(dev, u_volt); ? Yes. Viresh has comment on this, too. I will use dev_pm_opp_find_freq_ceil_by_volt() in next patch. > > Cheers, > MyungJoo > > > > _______________________________________________ > Linux-mediatek mailing list > Linux-mediatek@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-mediatek _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel