]> 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)
commit649d75e373a17b230d770c394f95170157433ba1
tree7e3908714334fce2060733dcfdc615896a870c90
parent2358d48a6db92cb022eb848a0943363a742d51a5
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: ac72a5e8cc467 ("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