Unverified Commit 764c921b authored by Stephen Boyd's avatar Stephen Boyd
Browse files

Merge tag 'sunxi-clk-fixes-for-6.17' of...

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
parents 6d8042ba 25fbbaf5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -185,7 +185,7 @@ static unsigned long ccu_mp_recalc_rate(struct clk_hw *hw,
	p &= (1 << cmp->p.width) - 1;

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