]> git.baikalelectronics.ru Git - kernel.git/commit
clk: iproc: round clock rate to the closest
authorLori Hikichi <lhikichi@broadcom.com>
Fri, 12 Jun 2020 22:52:12 +0000 (15:52 -0700)
committerStephen Boyd <sboyd@kernel.org>
Fri, 24 Jul 2020 08:54:18 +0000 (01:54 -0700)
commit4caceb6622f6dc4dfc6fe66b9d4286a62089065b
treed3e36601f321fa2977b8bded65847e358186f9d1
parent74a27a5f5a99e6b5adfd790053b6cccac3270c76
clk: iproc: round clock rate to the closest

Change from 'DIV_ROUND_UP' to 'DIV_ROUND_CLOSEST' when calculating the
clock divisor in the iProc ASIU clock driver to allow to get to the
closest clock rate.

Fixes: e1adcbc42886 ("clk: iproc: add initial common clock support")
Signed-off-by: Lori Hikichi <lhikichi@broadcom.com>
Signed-off-by: Ray Jui <ray.jui@broadcom.com>
Link: https://lore.kernel.org/r/20200612225212.124301-1-ray.jui@broadcom.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/bcm/clk-iproc-asiu.c