Re: [PATCH v3 7/7] clk/qcom: fix rcg divider value

2023-11-05 Thread Sumit Garg
On Fri, 3 Nov 2023 at 21:11, Caleb Connolly wrote: > > The RCG divider field takes a value of (2*h - 1) where h is the divisor. > This allows fractional dividers to be supported by calculating them at > compile time using a macro. > > However, the clk_rcg_set_rate_mnd() function was also

[PATCH v3 7/7] clk/qcom: fix rcg divider value

2023-11-03 Thread Caleb Connolly
The RCG divider field takes a value of (2*h - 1) where h is the divisor. This allows fractional dividers to be supported by calculating them at compile time using a macro. However, the clk_rcg_set_rate_mnd() function was also performing the calculation. Clean this all up and consistently use the