kernel_optimize_test/drivers/clk/bcm
Maxime Ripard b9c2343373 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 9c95b32ca0 ("clk: bcm2835: add a round
up ability to the clock divisor").

Fixes: 9c95b32ca0 ("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>
2022-01-27 10:53:45 +01:00
..
clk-bcm63xx-gate.c clk: bcm63xx-gate: switch to dt-bindings definitions 2020-06-19 17:03:24 -07:00
clk-bcm63xx.c
clk-bcm281xx.c
clk-bcm2711-dvp.c clk: bcm: dvp: Add MODULE_DEVICE_TABLE() 2020-12-30 11:54:00 +01:00
clk-bcm2835-aux.c clk: bcm2835: use devm_platform_ioremap_resource() to simplify code 2019-10-16 16:16:50 -07:00
clk-bcm2835.c clk: bcm-2835: Remove rounding up the dividers 2022-01-27 10:53:45 +01:00
clk-bcm21664.c
clk-bcm53573-ilp.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
clk-cygnus.c
clk-hr2.c
clk-iproc-armpll.c
clk-iproc-asiu.c clk: iproc: round clock rate to the closest 2020-07-24 01:54:18 -07:00
clk-iproc-pll.c
clk-iproc.h
clk-kona-setup.c
clk-kona.c clk: Remove io.h from clk-provider.h 2019-05-15 13:21:37 -07:00
clk-kona.h
clk-ns2.c
clk-nsp.c
clk-raspberrypi.c clk: bcm: rpi: Add register to control pixel bvb clk 2020-09-22 12:29:17 -07:00
clk-sr.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 459 2019-06-19 17:09:09 +02:00
Kconfig clk: bcm: dvp: Select the reset framework 2020-09-10 00:53:38 -07:00
Makefile clk: bcm: Add BCM2711 DVP driver 2020-06-19 17:13:53 -07:00