ipq40xx: 5.15: refresh kernel patches
[openwrt/staging/mkresin.git] / target / linux / ipq40xx / patches-5.15 / 104-clk-fix-apss-cpu-overclocking.patch
index 25a2020bd26e07e6742f40221705ff55fb577e27..2de03f7ae0aff2cc2ba59108fb3c09fd843be02a 100644 (file)
@@ -83,16 +83,16 @@ Signed-off-by: John Crispin <john@phrozen.org>
        if (!f)
                return -EINVAL;
  
-@@ -1278,7 +1301,7 @@ static int clk_cpu_div_set_rate(struct c
+@@ -1277,7 +1300,7 @@ static int clk_cpu_div_set_rate(struct c
+       const struct freq_tbl *f;
        u32 mask;
-       int ret;
  
 -      f = qcom_find_freq(pll->freq_tbl, rate);
 +      f = qcom_find_freq_close(pll->freq_tbl, rate);
        if (!f)
                return -EINVAL;
  
-@@ -1305,6 +1328,7 @@ static unsigned long
+@@ -1304,6 +1327,7 @@ static unsigned long
  clk_cpu_div_recalc_rate(struct clk_hw *hw,
                        unsigned long parent_rate)
  {
@@ -100,7 +100,7 @@ Signed-off-by: John Crispin <john@phrozen.org>
        struct clk_fepll *pll = to_clk_fepll(hw);
        u32 cdiv, pre_div;
        u64 rate;
-@@ -1325,7 +1349,11 @@ clk_cpu_div_recalc_rate(struct clk_hw *h
+@@ -1324,7 +1348,11 @@ clk_cpu_div_recalc_rate(struct clk_hw *h
        rate = clk_fepll_vco_calc_rate(pll, parent_rate) * 2;
        do_div(rate, pre_div);