[PATCH v2 10/18] clk: at91: clk-generated: pass the id of changeable parent at registration

Stephen Boyd sboyd at kernel.org
Fri Jul 24 05:21:34 EDT 2020


Quoting Claudiu Beznea (2020-07-22 00:38:18)
> Pass the ID of changeable parent at registration. This will allow
> the scalability of this clock driver with regards to the changeable
> parent ID for versions of this IP where changeable parent is not the
> last one in the parents list (e.g. SAMA7G5). With this the clock flags
> are set to zero in case we have no changeable parent. Also in
> clk_generated_best_diff() the *best_diff variable is check against
> tmp_diff variable using ">=" operator instead of ">" so that in case
> the requested frequency could be obtained using fix parents + gck
> dividers but the clock also supports changeable parent to be able
> to force the usage of the changeable parent.
> 
> Signed-off-by: Claudiu Beznea <claudiu.beznea at microchip.com>
> ---

Applied to clk-next



More information about the linux-arm-kernel mailing list