[PATCH RFC RFT v3 13/13] clk: meson: pll: Remove the dedicated n parameter
sashiko-bot at kernel.org
sashiko-bot at kernel.org
Tue Dec 1 01:28:13 PST 2026
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] clk: meson: meson8b: multiplier 59 dropped from
meson8b_hdmi_pll_mult_table
--
commit ea5264979f069307f276cbb22fef298af3d03730
Author: Jian Hu <jian.hu at amlogic.com>
clk: meson: pll: Remove the dedicated n parameter
This commit removes the dedicated PLL pre-divider parameter n from struct
meson_clk_pll_data, negotiates the parent rate in
meson_clk_pll_determine_rate(), and converts the PLL parameter tables to
0-terminated multiplier arrays.
> diff --git a/drivers/clk/meson/meson8b.c b/drivers/clk/meson/meson8b.c
> index ae2bab5015976..9a165c8cd5b35 100644
> --- a/drivers/clk/meson/meson8b.c
> +++ b/drivers/clk/meson/meson8b.c
[ ... ]
> @@ -257,26 +236,8 @@ static const struct reg_sequence meson8b_hdmi_pll_init_regs[] = {
> { .reg = HHI_VID2_PLL_CNTL2, .def = 0x0430a800 },
> };
>
> -static const struct pll_params_table meson8b_hdmi_pll_params_table[] = {
> - PLL_PARAMS(40, 1),
> - PLL_PARAMS(42, 1),
> - PLL_PARAMS(44, 1),
> - PLL_PARAMS(45, 1),
> - PLL_PARAMS(49, 1),
> - PLL_PARAMS(52, 1),
> - PLL_PARAMS(54, 1),
> - PLL_PARAMS(56, 1),
> - PLL_PARAMS(59, 1),
> - PLL_PARAMS(60, 1),
> - PLL_PARAMS(61, 1),
> - PLL_PARAMS(62, 1),
> - PLL_PARAMS(64, 1),
> - PLL_PARAMS(66, 1),
> - PLL_PARAMS(68, 1),
> - PLL_PARAMS(71, 1),
> - PLL_PARAMS(82, 1),
> - { /* sentinel */ }
> -};
> +static const unsigned int meson8b_hdmi_pll_mult_table[] = { 40, 42, 44, 45, 49, 52, 54, 56, 60,
> + 61, 62, 64, 66, 68, 71, 82, 0 };
[Severity: Medium]
Was multiplier 59 dropped from meson8b_hdmi_pll_mult_table[] by mistake?
Without it, requests for meson8b_hdmi_pll_dco in the [59 * parent_rate,
60 * parent_rate) range fall back to m = 56 and saturate at
frac = frac_max - 1.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261201-meson_refactor_n-v3-0-f85a4460fd80@amlogic.com?part=13
More information about the linux-amlogic
mailing list