Re: [PATCH] opp: Allow multiple clocks for primary clock operations

From: Viresh Kumar

Date: Thu Dec 03 2026 - 05:31:54 EST


On 01-12-26, 21:01, Chuan Liu wrote:
> OPP core uses opp_table->clk as the primary clock in several paths, e.g.:
>
> dev_pm_opp_set_rate()

Right and using the simple set-rate routine for a multi-clock device is
incorrect. We need a different routine for that. Keeping clk as Error in that
case is the right thing to do.. We only agreed to change the assert, as
single-clk assert == clk[0] assert (as index sent is 0 in those cases)..

I thought your code worked fine with just that change.

--
viresh