Skip to content

Commit fca8688

Browse files
tq-steinaAbel Vesa
authored andcommitted
clk: imx: pll14xx: Use unsigned format specifier
The debug outputs use %d for clock rates resulting in negative clock rate during rate calculation. Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com> Reviewed-by: Peng Fan <peng.fan@nxp.com> Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com> Link: https://patch.msgid.link/20260317121953.1100619-1-alexander.stein@ew.tq-group.com Signed-off-by: Abel Vesa <abel.vesa@oss.qualcomm.com>
1 parent 51ac0f4 commit fca8688

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

drivers/clk/imx/clk-pll14xx.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ static void imx_pll14xx_calc_settings(struct clk_pll14xx *pll, unsigned long rat
151151
/* First try if we can get the desired rate from one of the static entries */
152152
tt = imx_get_pll_settings(pll, rate);
153153
if (tt) {
154-
pr_debug("%s: in=%ld, want=%ld, Using PLL setting from table\n",
154+
pr_debug("%s: in=%lu, want=%lu, Using PLL setting from table\n",
155155
clk_hw_get_name(&pll->hw), prate, rate);
156156
t->rate = tt->rate;
157157
t->mdiv = tt->mdiv;
@@ -173,7 +173,7 @@ static void imx_pll14xx_calc_settings(struct clk_pll14xx *pll, unsigned long rat
173173

174174
if (rate >= rate_min && rate <= rate_max) {
175175
kdiv = pll1443x_calc_kdiv(mdiv, pdiv, sdiv, rate, prate);
176-
pr_debug("%s: in=%ld, want=%ld Only adjust kdiv %ld -> %d\n",
176+
pr_debug("%s: in=%lu, want=%lu Only adjust kdiv %ld -> %d\n",
177177
clk_hw_get_name(&pll->hw), prate, rate,
178178
FIELD_GET(KDIV_MASK, pll_div_ctl1), kdiv);
179179
fout = pll14xx_calc_rate(pll, mdiv, pdiv, sdiv, kdiv, prate);
@@ -211,7 +211,7 @@ static void imx_pll14xx_calc_settings(struct clk_pll14xx *pll, unsigned long rat
211211
}
212212
}
213213
found:
214-
pr_debug("%s: in=%ld, want=%ld got=%d (pdiv=%d sdiv=%d mdiv=%d kdiv=%d)\n",
214+
pr_debug("%s: in=%lu, want=%lu got=%u (pdiv=%d sdiv=%d mdiv=%d kdiv=%d)\n",
215215
clk_hw_get_name(&pll->hw), prate, rate, t->rate, t->pdiv, t->sdiv,
216216
t->mdiv, t->kdiv);
217217
}

0 commit comments

Comments
 (0)