Re: [PATCH] clk: imx: Fix fractional clock set rate computation

2019-01-24 Thread Stephen Boyd
Quoting Abel Vesa (2019-01-18 04:54:13) > Before multiplying by PLL_FRAC_DENOM, the temp64 needs to be > temp64 = rate * 2 - divfi * parent_rate * 8, instead of: > temp64 = (rate * 2 - divfi) * parent_rate > > Fixes: 6209624b9a5c1e ("clk: imx: Add fractional PLL output clock") > Signed-off-by:

[PATCH] clk: imx: Fix fractional clock set rate computation

2019-01-18 Thread Abel Vesa
Before multiplying by PLL_FRAC_DENOM, the temp64 needs to be temp64 = rate * 2 - divfi * parent_rate * 8, instead of: temp64 = (rate * 2 - divfi) * parent_rate Fixes: 6209624b9a5c1e ("clk: imx: Add fractional PLL output clock") Signed-off-by: Abel Vesa --- drivers/clk/imx/clk-frac-pll.c | 5