Repository navigation
Commit b9c2343
clk: bcm-2835: Remove rounding up the dividers
[ Upstream commit 8ca011e ]
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 9c95b32 ("clk: bcm2835: add a round
up ability to the clock divisor").
Fixes: 9c95b32 ("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>1 parent 836dd37 commit b9c2343
1 file changed
Lines changed: 3 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
933 | 933 | | |
934 | 934 | | |
935 | 935 | | |
936 | | - | |
937 | | - | |
| 936 | + | |
938 | 937 | | |
939 | 938 | | |
940 | 939 | | |
| |||
946 | 945 | | |
947 | 946 | | |
948 | 947 | | |
949 | | - | |
950 | | - | |
951 | | - | |
952 | | - | |
953 | 948 | | |
954 | 949 | | |
955 | 950 | | |
| |||
1080 | 1075 | | |
1081 | 1076 | | |
1082 | 1077 | | |
1083 | | - | |
| 1078 | + | |
1084 | 1079 | | |
1085 | 1080 | | |
1086 | 1081 | | |
| |||
1131 | 1126 | | |
1132 | 1127 | | |
1133 | 1128 | | |
1134 | | - | |
| 1129 | + | |
1135 | 1130 | | |
1136 | 1131 | | |
1137 | 1132 | | |
| |||
0 commit comments