Skip to content

Commit 764c921

Browse files
committed
Merge tag 'sunxi-clk-fixes-for-6.17' of https://git.kernel.org/pub/scm/linux/kernel/git/sunxi/linux into clk-fixes
Pull an Allwinner clk driver fix from Chen-Yu Tsai: - One fix for the clock rate readback on the recently added dual divider clocks * tag 'sunxi-clk-fixes-for-6.17' of https://git.kernel.org/pub/scm/linux/kernel/git/sunxi/linux: clk: sunxi-ng: mp: Fix dual-divider clock rate readback
2 parents 6d8042b + 25fbbaf commit 764c921

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/clk/sunxi-ng/ccu_mp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ static unsigned long ccu_mp_recalc_rate(struct clk_hw *hw,
185185
p &= (1 << cmp->p.width) - 1;
186186

187187
if (cmp->common.features & CCU_FEATURE_DUAL_DIV)
188-
rate = (parent_rate / p) / m;
188+
rate = (parent_rate / (p + cmp->p.offset)) / m;
189189
else
190190
rate = (parent_rate >> p) / m;
191191

0 commit comments

Comments
 (0)