Re: [PATCH] clk: at91: sama7g5: Allocate only the needed amount of memory for PLLs

From: claudiu beznea
Date: Tue Jul 16 2024 - 03:38:27 EST




On 15.07.2024 22:47, Stephen Boyd wrote:
> Quoting Claudiu Beznea (2024-07-14 07:13:15)
>> The maximum number of PLL components on SAMA7G5 is 3 (one fractional
>> part and 2 dividers). Allocate the needed amount of memory for
>> sama7g5_plls 2d array. Previous code used to allocate 7 array entries for
>> each PLL. While at it, replace 3 with PLL_COMPID_MAX in the loop which
>> parses the sama7g5_plls 2d array.
>>
>> Signed-off-by: Claudiu Beznea <claudiu.beznea@xxxxxxxxx>
>> ---
>
> Might as well add a Fixes tag so we know when it was less efficient and
> to help anyone trying to backport this driver.

That would be:

Fixes: cb783bbbcf54 ("clk: at91: sama7g5: add clock support for sama7g5")

Thank you,
Claudiu Beznea

>
> Acked-by: Stephen Boyd <sboyd@xxxxxxxxxx>