Re: [PATCH] clk: imx: Use do_div in SCCG due to 64-bit divisor

2018-11-29 Thread Stephen Rothwell
Hi Abel, On Thu, 29 Nov 2018 23:50:22 + Abel Vesa wrote: > > --- a/drivers/clk/imx/clk-frac-pll.c > +++ b/drivers/clk/imx/clk-frac-pll.c > @@ -116,12 +116,13 @@ static long clk_pll_round_rate(struct clk_hw *hw, > unsigned long rate, > unsigned long *prate) > { >

[PATCH] clk: imx: Use do_div in SCCG due to 64-bit divisor

2018-11-29 Thread Abel Vesa
On arm32, a division with a 64-bit divisor has to be done through do_div() function otherwise there is a link failure like: drivers/clk/imx/clk-frac-pll.o: In function `clk_pll_round_rate': clk-frac-pll.c:(.text+0x54): undefined reference to `__aeabi_uldivmod' make: *** [Makefile:1040: vmlinux] Er