]> git.baikalelectronics.ru Git - kernel.git/commit
clk: scmi: Fix the rounding of clock rate
authorAmit Daniel Kachhap <amit.kachhap@arm.com>
Tue, 31 Jul 2018 05:55:55 +0000 (11:25 +0530)
committerStephen Boyd <sboyd@kernel.org>
Thu, 2 Aug 2018 20:43:48 +0000 (13:43 -0700)
commit02148d9cad7344a5eeab13ec0e1777279410cc06
tree7e3908714334fce2060733dcfdc615896a870c90
parent0d5624e606504772b89d3c3d6b1be740ef176c61
clk: scmi: Fix the rounding of clock rate

This fix rounds the clock rate properly by using quotient and not
remainder in the calculation. This issue was found while testing HDMI
in the Juno platform.

Fixes: 8ddd39a2c1a7b ("clk: add support for clocks provided by SCMI")
Acked-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Amit Daniel Kachhap <amit.kachhap@arm.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/clk-scmi.c