clk: pistachio: Fix 32bit integer overflows
This commit fixes 32bit integer overflows throughout the pll driver (i.e. wherever the result of integer multiplication may exceed the range of u32). One of the functions affected by this problem is .recalc_rate. It returns incorrect rate for some pll settings (not for all though) which in turn results in the incorrect rate setup of pll's child clocks. Fixes: 43049b0c("CLK: Pistachio: Add PLL driver") Cc: <stable@vger.kernel.org> # 4.1 Reviewed-by: NAndrew Bresticker <abrestic@chromium.org> Signed-off-by: NZdenko Pulitika <zdenko.pulitika@imgtec.com> Signed-off-by: NGovindraj Raja <govindraj.raja@imgtec.com> Signed-off-by: NStephen Boyd <sboyd@codeaurora.org>
Showing
想要评论请 注册 或 登录