[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <73d39022-c6fc-0c21-cb68-9714846f02bf@gmail.com>
Date: Mon, 27 Jun 2022 01:14:54 +0300
From: Dmitry Osipenko <digetx@...il.com>
To: Viresh Kumar <viresh.kumar@...aro.org>,
Thierry Reding <thierry.reding@...il.com>,
Jonathan Hunter <jonathanh@...dia.com>
Cc: linux-pm@...r.kernel.org,
Vincent Guittot <vincent.guittot@...aro.org>,
Rafael Wysocki <rjw@...ysocki.net>,
Stephen Boyd <sboyd@...nel.org>, Nishanth Menon <nm@...com>,
Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>,
linux-tegra@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 22/31] soc/tegra: Migrate to dev_pm_opp_set_config()
24.06.2022 03:57, Viresh Kumar пишет:
> On 24-06-22, 06:18, Viresh Kumar wrote:
>> + struct dev_pm_opp_config config = {
>> + /*
>> + * For some devices we don't have any OPP table in the DT, and
>> + * in order to use the same code path for all the devices, we
>> + * create a dummy OPP table for them via this. The dummy OPP
>> + * table is only capable of doing clk_set_rate() on invocation
>> + * of dev_pm_opp_set_rate() and doesn't provide any other
>> + * functionality.
>> + */
>> + .clk_names = NULL,
>> + .clk_count = 1,
>> + };
>
> Slight modification here, sorry about that. We just need to set the
> name as NULL and not the array itself.
>
> diff --git a/drivers/soc/tegra/common.c b/drivers/soc/tegra/common.c
> index cd53e46c4058..6a099d764cce 100644
> --- a/drivers/soc/tegra/common.c
> +++ b/drivers/soc/tegra/common.c
> @@ -116,7 +116,7 @@ int devm_tegra_core_dev_init_opp_table(struct device *dev,
> * of dev_pm_opp_set_rate() and doesn't provide any other
> * functionality.
> */
> - .clk_names = NULL,
> + .clk_names = (const char *[]){ NULL },
> .clk_count = 1,
> };
>
Looks okay. If you'll solve the cpufreq problem where OPP config is set
by two drivers for the same cpu device and will keep the set_opp()
helper that is needed by the Tegra 3d driver, then it all should work
for Tegra. Looking forward to the next update of the OPP patches, thank you.
Powered by blists - more mailing lists