Re: [PATCH] opp: of: Allow lazy-linking of required-opps to non genpd

From: Viresh Kumar
Date: Wed Jun 16 2021 - 03:09:58 EST


On 16-06-21, 14:25, Hsin-Yi Wang wrote:
> When cpufreq changes, the (cpufreq based) passive governor will
> calculate a target devfreq based on that, and the device governor
> (mt8183-cci-devfreq) will change the actual opp of the device.
>
> The required-opp is set in the cpufreq table:
>
> cpufreq_opp_table: opp_table0 {
> compatible = "operating-points-v2";
> opp-shared;
> ...
> opp0_01 {
> opp-hz = /bits/ 64 <910000000>;
> opp-microvolt = <687500>;
> required-opps = <&opp2_01>;
> };
> ...
> };
>
> devfreq_opp_table: opp_table2 {
> compatible = "operating-points-v2";
> opp-shared;
> ...
> opp2_01: opp-338000000 {
> opp-hz = /bits/ 64 <338000000>;
> opp-microvolt = <687500>;
> };
> ...
> };

Ah, you aren't using dev_pm_opp_set_opp() or dev_pm_opp_set_rate()
interfaces.

Looks okay then.

--
viresh