summaryrefslogtreecommitdiffstats
path: root/drivers/clk/clk-ls1x.c
diff options
context:
space:
mode:
authorZdenko Pulitika <zdenko.pulitika@imgtec.com>2015-08-26 17:11:37 +0100
committerStephen Boyd <sboyd@codeaurora.org>2015-08-26 11:34:28 -0700
commit093affb009a3d87848e51217cd1a06ce1135633f (patch)
tree4cf8b9e4aa9a722ce259d346ac1603155d3c5309 /drivers/clk/clk-ls1x.c
parentc5a132a84a692f8d81f3b6959b98bcd959659457 (diff)
downloadop-kernel-dev-093affb009a3d87848e51217cd1a06ce1135633f.zip
op-kernel-dev-093affb009a3d87848e51217cd1a06ce1135633f.tar.gz
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: 43049b0c83f17("CLK: Pistachio: Add PLL driver") Cc: <stable@vger.kernel.org> # 4.1 Reviewed-by: Andrew Bresticker <abrestic@chromium.org> Signed-off-by: Zdenko Pulitika <zdenko.pulitika@imgtec.com> Signed-off-by: Govindraj Raja <govindraj.raja@imgtec.com> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'drivers/clk/clk-ls1x.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud