Re: [PATCH 4/7] OPP: Introduce an OF helper function to inform if required-opps is used

From: Viresh Kumar
Date: Wed Jun 26 2024 - 01:50:22 EST


On 19-06-24, 16:08, Ulf Hansson wrote:
> As being shown from a subsequent change to genpd, it's useful to understand
> if a device's OF node has an OPP-table described and whether it contains
> OPP nodes that makes use of the required-opps DT property.
>
> For this reason, let's introduce an OPP OF helper function called
> dev_pm_opp_of_has_required_opp().
>
> Signed-off-by: Ulf Hansson <ulf.hansson@xxxxxxxxxx>
> ---
> drivers/opp/of.c | 32 ++++++++++++++++++++++++++++++++
> include/linux/pm_opp.h | 6 ++++++
> 2 files changed, 38 insertions(+)

Applied. Thanks.

--
viresh