summaryrefslogtreecommitdiff
path: root/drivers/clk/clk-si570.c
diff options
context:
space:
mode:
authorMaxime Ripard <maxime@cerno.tech>2021-09-22 15:54:16 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-01-27 11:00:49 +0300
commitfc96d5bb0e981f1168de8f2b86f29804114b829b (patch)
tree57f0eea4dbc17edd03a2f97233d1d34e82d82012 /drivers/clk/clk-si570.c
parent33ed51d35774ae82048b1fc1f4c7e40ee20f01ac (diff)
downloadlinux-fc96d5bb0e981f1168de8f2b86f29804114b829b.tar.xz
clk: bcm-2835: Remove rounding up the dividers
[ Upstream commit 8ca011ef4af48a7af7b15afd8a4a44039dd04cea ] The driver, once it found a divider, tries to round it up by increasing the least significant bit of the fractional part by one when the round_up argument is set and there's a remainder. However, since it increases the divider it will actually reduce the clock rate below what we were asking for, leading to issues with clk_set_min_rate() that will complain that our rounded clock rate is below the minimum of the rate. Since the dividers are fairly precise already, let's remove that part so that we can have clk_set_min_rate() working. This is effectively a revert of 9c95b32ca093 ("clk: bcm2835: add a round up ability to the clock divisor"). Fixes: 9c95b32ca093 ("clk: bcm2835: add a round up ability to the clock divisor") Signed-off-by: Maxime Ripard <maxime@cerno.tech> Acked-by: Stephen Boyd <sboyd@kernel.org> Reviewed-by: Nicolas Saenz Julienne <nsaenz@kernel.org> Tested-by: Nicolas Saenz Julienne <nsaenz@kernel.org> # boot and basic functionality Tested-by: Michael Stapelberg <michael@stapelberg.ch> Link: https://patchwork.freedesktop.org/patch/msgid/20210922125419.4125779-3-maxime@cerno.tech Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/clk/clk-si570.c')
0 files changed, 0 insertions, 0 deletions