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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id E99E8C5478C for ; Mon, 26 Feb 2024 16:29:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:From:References:Cc:To:Subject: MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ixrL+DISI3PfksKrRc3/ulZ0cP8t4UGHfNAoM9EVllc=; b=cGErs5NlhNVeuA I4nkv0rWAghSL662IN8GIVwggZ51NCKf5cZ23vpn2M2ILyYWtS9o8iTmiHOSgGst1BZ1bwYc3nmdv pePqklvcTy5lW/DbupjWiRXzRoUuEutvDa0fdxUkW9zB8NULEPPPHcLsvujH1msrX6Ogkixh94jKi 39+WzacgztxmPBe9R4mVGhMoJT5swZkAppXqaw5t29hH9dHiSdPcj5472PfRqDNTxgcjJDYfJgCYJ IKfzny13+1ApDQuZbTfBkhRiI8BftQChQGbClWO3joT0mR9Az32CqT8uPQENm4K8C83UtbQ0+f97z 1O762FfUWGgza+dSfvxw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1redr9-00000001fjn-1tYN; Mon, 26 Feb 2024 16:29:31 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1redr6-00000001fiq-0YPo for linux-arm-kernel@lists.infradead.org; Mon, 26 Feb 2024 16:29:29 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 230FBDA7; Mon, 26 Feb 2024 08:30:01 -0800 (PST) Received: from [10.57.12.43] (unknown [10.57.12.43]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id D7C9B3F73F; Mon, 26 Feb 2024 08:29:19 -0800 (PST) Message-ID: Date: Mon, 26 Feb 2024 16:29:36 +0000 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/3] OPP: Extend dev_pm_opp_data with turbo support Content-Language: en-US To: Sibi Sankar Cc: linux-arm-kernel@lists.infradead.org, sboyd@kernel.org, morten.rasmussen@arm.com, viresh.kumar@linaro.org, rafael@kernel.org, cristian.marussi@arm.com, sudeep.holla@arm.com, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, quic_mdtipton@quicinc.com, linux-arm-msm@vger.kernel.org, nm@ti.com, dietmar.eggemann@arm.com References: <20240117110443.2060704-1-quic_sibis@quicinc.com> <20240117110443.2060704-2-quic_sibis@quicinc.com> From: Lukasz Luba In-Reply-To: <20240117110443.2060704-2-quic_sibis@quicinc.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240226_082928_469611_F03BA1CA X-CRM114-Status: GOOD ( 14.04 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 1/17/24 11:04, Sibi Sankar wrote: > Let's extend the dev_pm_opp_data with a turbo variable, to allow users to > specify if it's a boost frequency for a dynamically added OPP. > > Signed-off-by: Sibi Sankar > --- > drivers/opp/core.c | 1 + > include/linux/pm_opp.h | 1 + > 2 files changed, 2 insertions(+) > > diff --git a/drivers/opp/core.c b/drivers/opp/core.c > index c4e0432ae42a..e233734b7220 100644 > --- a/drivers/opp/core.c > +++ b/drivers/opp/core.c > @@ -2065,6 +2065,7 @@ int _opp_add_v1(struct opp_table *opp_table, struct device *dev, > /* populate the opp table */ > new_opp->rates[0] = data->freq; > new_opp->level = data->level; > + new_opp->turbo = data->turbo; > tol = u_volt * opp_table->voltage_tolerance_v1 / 100; > new_opp->supplies[0].u_volt = u_volt; > new_opp->supplies[0].u_volt_min = u_volt - tol; > diff --git a/include/linux/pm_opp.h b/include/linux/pm_opp.h > index 76dcb7f37bcd..a08a1fb1ca2a 100644 > --- a/include/linux/pm_opp.h > +++ b/include/linux/pm_opp.h > @@ -93,6 +93,7 @@ struct dev_pm_opp_config { > * @u_volt: The voltage in uV for the OPP. > */ > struct dev_pm_opp_data { > + bool turbo; Please add description of that new field, like other fields in the comment above. > unsigned int level; > unsigned long freq; > unsigned long u_volt; _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel