summaryrefslogtreecommitdiff
path: root/net/packet
diff options
context:
space:
mode:
authorMaxime Ripard <maxime@cerno.tech>2021-09-22 15:54:15 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-01-27 13:03:03 +0300
commit2ff7b32f6b3efbf021c151c01208386e62618aac (patch)
tree767f0159f592224d35fe5a41ba687d3f087ebb3f /net/packet
parentd2e7a4d20f7c5c6157901c231b6c71ecc6943d24 (diff)
downloadlinux-2ff7b32f6b3efbf021c151c01208386e62618aac.tar.xz
clk: bcm-2835: Pick the closest clock rate
[ Upstream commit 5517357a4733d7cf7c17fc79d0530cfa47add372 ] The driver currently tries to pick the closest rate that is lower than the rate being requested. This causes an issue with clk_set_min_rate() since it actively checks for the rounded rate to be above the minimum that was just set. Let's change the logic a bit to pick the closest rate to the requested rate, no matter if it's actually higher or lower. Fixes: 6d18b8adbe67 ("clk: bcm2835: Support for clock parent selection") 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-2-maxime@cerno.tech Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net/packet')
0 files changed, 0 insertions, 0 deletions