commit | 764c921bf0c5ff125989a6c039a344ed211ffda9 | [log] [tgz] |
---|---|---|
author | Stephen Boyd <sboyd@kernel.org> | Fri Sep 19 21:28:01 2025 -0700 |
committer | Stephen Boyd <sboyd@kernel.org> | Fri Sep 19 21:28:01 2025 -0700 |
tree | 36a9db1b5d68926263af04274260c2910a429882 | |
parent | 6d8042baa80c993cfdc6795384f32e37213b2ec9 [diff] | |
parent | 25fbbaf515acd13399589bd5ee6de5f35740cef2 [diff] |
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
diff --git a/drivers/clk/sunxi-ng/ccu_mp.c b/drivers/clk/sunxi-ng/ccu_mp.c index 354c981..4221b18 100644 --- a/drivers/clk/sunxi-ng/ccu_mp.c +++ b/drivers/clk/sunxi-ng/ccu_mp.c
@@ -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;