clk: Always clamp the rounded rate
authorMaxime Ripard <maxime@cerno.tech>
Wed, 5 May 2021 13:35:34 +0000 (15:35 +0200)
committerDom Cobley <popcornmix@gmail.com>
Mon, 21 Mar 2022 16:04:18 +0000 (16:04 +0000)
commit50ae603600024383b98808f05b36d38f6d2194cc
treee8e85e3931d313a42a8e521a01adbc94ba2180b5
parentc952fd70abb4355d314234402e0be4ca181fc0a1
clk: Always clamp the rounded rate

The current core while setting the min and max rate properly in the
clk_request structure will not make sure that the requested rate is
within these boundaries, leaving it to each and every driver to make
sure it is.

Add a clamp call to make sure it's always done.

Signed-off-by: Maxime Ripard <maxime@cerno.tech>
drivers/clk/clk.c