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

2023-11-03 Thread Caleb Connolly
On 02/11/2023 08:24, Sumit Garg wrote: > On Tue, 31 Oct 2023 at 03:54, 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,

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

2023-11-02 Thread Sumit Garg
On Tue, 31 Oct 2023 at 03:54, 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 performi

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

2023-10-30 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 F