summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorJerome Brunet <jbrunet@baylibre.com>2017-12-02 00:52:00 +0300
committerMichael Turquette <mturquette@baylibre.com>2017-12-20 03:35:35 +0300
commit6562fbcf3ad5ffa56f1fc79bb1afae909cf3627b (patch)
treed378f55d810afab8770c25d7c78b7361ce14ddf4 /firmware
parent55e9b8b7b806ec3f9a8817e13596682a5981c19c (diff)
downloadlinux-6562fbcf3ad5ffa56f1fc79bb1afae909cf3627b.tar.xz
clk: fix set_rate_range when current rate is out of range
Calling clk_core_set_rate() with core->req_rate is basically a no-op because of the early bail-out mechanism. This may leave the clock in inconsistent state if the rate is out the requested range. Calling clk_core_set_rate() with the closest rate limit could solve the problem but: - The underlying determine_rate() callback needs to account for this corner case (rounding within the range, if possible) - if only round_rate() is available, we rely on luck unfortunately. Fixes: 1c8e600440c7 ("clk: Add rate constraints to clocks") Tested-by: Maxime Ripard <maxime.ripard@free-electrons.com> Acked-by: Michael Turquette <mturquette@baylibre.com> Signed-off-by: Jerome Brunet <jbrunet@baylibre.com> Signed-off-by: Michael Turquette <mturquette@baylibre.com> Link: lkml.kernel.org/r/20171201215200.23523-11-jbrunet@baylibre.com
Diffstat (limited to 'firmware')
0 files changed, 0 insertions, 0 deletions