diff options
author | Stephen Boyd <sboyd@kernel.org> | 2025-09-19 21:28:01 -0700 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2025-09-19 21:28:01 -0700 |
commit | 764c921bf0c5ff125989a6c039a344ed211ffda9 (patch) | |
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
-rw-r--r-- | drivers/clk/sunxi-ng/ccu_mp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/sunxi-ng/ccu_mp.c b/drivers/clk/sunxi-ng/ccu_mp.c index 354c981943b6..4221b1888b38 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; |