Skip to content

Commit c9520be

Browse files
committed
clk: sunxi-ng: mult: Fix minimum in round rate
The previous code was always taking 1 as the minimum in it's round_rate function, ignoring entirely what was set as minimum in the clock definition. Make sure that's not the case anymore. Fixes: 2beaa60 ("clk: sunxi-ng: Implement minimum for multipliers") Acked-by: Chen-Yu Tsai <wens@csie.org> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
1 parent e66f81b commit c9520be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/clk/sunxi-ng/ccu_mult.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ static unsigned long ccu_mult_round_rate(struct ccu_mux_internal *mux,
4040
struct ccu_mult *cm = data;
4141
struct _ccu_mult _cm;
4242

43-
_cm.min = 1;
43+
_cm.min = cm->mult.min;
4444
_cm.max = 1 << cm->mult.width;
4545
ccu_mult_find_best(parent_rate, rate, &_cm);
4646

0 commit comments

Comments
 (0)