Re: [PATCH 5/8] OPP: Allow multiple clocks for a device

Viresh Kumar
2022-06-13T08:07:46Z

On 10-06-22, 13:50, Viresh Kumar wrote:
> @@ -1594,24 +1601,28 @@ EXPORT_SYMBOL_GPL(dev_pm_opp_remove_all_dynamic);
> struct dev_pm_opp *_opp_allocate(struct opp_table *opp_table)
> {
> struct dev_pm_opp *opp;
> - int supply_count, supply_size, icc_size;
> + int supply_count, supply_size, icc_size, clk_size;
>
> /* Allocate space for at least one supply */
> supply_count = opp_table->regulator_count > 0 ?
> opp_table->regulator_count : 1;
> supply_size = sizeof(*opp->supplies) * supply_count;
> + clk_size = sizeof(*opp->rates) * opp_table->clk_count;
> icc_size = sizeof(*opp->bandwidth) * opp_table->path_count;
>
> /* allocate new OPP node and supplies structures */
> opp = kzalloc(sizeof(*opp) + supply_size + icc_size, GFP_KERNEL);

The change for this line was lost in rebase I think. I have fixed my branch with
this Krzysztof, so testing over it should be fine. Thanks.

--
viresh