From: sashiko-bot@kernel.org
To: "Jian Hu" <jian.hu@amlogic.com>
Cc: linux-clk@vger.kernel.org, linux-amlogic@lists.infradead.org,
devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org,
neil.armstrong@linaro.org
Subject: Re: [PATCH RFC RFT v3 13/13] clk: meson: pll: Remove the dedicated n parameter
Date: Tue, 01 Dec 2026 09:28:13 +0000 [thread overview]
Message-ID: <sashiko-outbox-242976@kernel.org> (raw)
In-Reply-To: <20261201-meson_refactor_n-v3-13-f85a4460fd80@amlogic.com>
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@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
WARNING: multiple messages have this Message-ID (diff)
From: sashiko-bot@kernel.org
To: "Jian Hu" <jian.hu@amlogic.com>
Cc: linux-clk@vger.kernel.org, linux-amlogic@lists.infradead.org,
devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org,
neil.armstrong@linaro.org
Subject: Re: [PATCH RFC RFT v3 13/13] clk: meson: pll: Remove the dedicated n parameter
Date: Tue, 01 Dec 2026 09:28:13 +0000 [thread overview]
Message-ID: <sashiko-outbox-242976@kernel.org> (raw)
In-Reply-To: <20261201-meson_refactor_n-v3-13-f85a4460fd80@amlogic.com>
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@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
_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic
next prev parent reply other threads:[~2026-12-01 9:28 UTC|newest]
Thread overview: 56+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 8:56 [PATCH RFC RFT v3 00/13] clk: meson: Refactor PLL pre-divider as a divider clock Jian Hu via B4 Relay
2026-12-01 8:56 ` Jian Hu via B4 Relay
2026-12-01 8:56 ` Jian Hu
2026-12-01 8:56 ` [PATCH RFC RFT v3 01/13] clk: divider: Add CLK_DIVIDER_INVALID_ZERO flag Jian Hu via B4 Relay
2026-12-01 8:56 ` Jian Hu via B4 Relay
2026-12-01 8:56 ` Jian Hu
2026-12-01 9:10 ` sashiko-bot
2026-12-01 9:10 ` sashiko-bot
2026-12-01 8:56 ` [PATCH RFC RFT v3 02/13] clk: meson: clk-regmap: Widen the divider flags to 16 bits Jian Hu via B4 Relay
2026-12-01 8:56 ` Jian Hu via B4 Relay
2026-12-01 8:56 ` Jian Hu
2026-12-01 8:56 ` [PATCH RFC RFT v3 03/13] dt-bindings: clock: amlogic: Add PLL pre-divider clock IDs Jian Hu via B4 Relay
2026-12-01 8:56 ` Jian Hu via B4 Relay
2026-12-01 8:56 ` Jian Hu
2026-12-01 8:56 ` [PATCH RFC RFT v3 04/13] clk: meson: axg: Model the PLL pre-divider as a divider clock Jian Hu via B4 Relay
2026-12-01 8:56 ` Jian Hu via B4 Relay
2026-12-01 8:56 ` Jian Hu
2026-12-01 9:11 ` sashiko-bot
2026-12-01 9:11 ` sashiko-bot
2026-12-01 8:56 ` [PATCH RFC RFT v3 05/13] clk: meson: a1: " Jian Hu via B4 Relay
2026-12-01 8:56 ` Jian Hu via B4 Relay
2026-12-01 8:56 ` Jian Hu
2026-12-01 8:56 ` [PATCH RFC RFT v3 06/13] clk: meson: c3: " Jian Hu via B4 Relay
2026-12-01 8:56 ` Jian Hu via B4 Relay
2026-12-01 8:56 ` Jian Hu
2026-12-01 8:56 ` [PATCH RFC RFT v3 07/13] clk: meson: gxbb: " Jian Hu via B4 Relay
2026-12-01 8:56 ` Jian Hu via B4 Relay
2026-12-01 8:56 ` Jian Hu
2026-12-01 9:16 ` sashiko-bot
2026-12-01 9:16 ` sashiko-bot
2026-12-01 8:56 ` [PATCH RFC RFT v3 08/13] clk: meson: g12a: " Jian Hu via B4 Relay
2026-12-01 8:56 ` Jian Hu via B4 Relay
2026-12-01 8:56 ` Jian Hu
2026-12-01 9:19 ` sashiko-bot
2026-12-01 9:19 ` sashiko-bot
2026-12-01 8:56 ` [PATCH RFC RFT v3 09/13] clk: meson: meson8: " Jian Hu
2026-12-01 8:56 ` Jian Hu via B4 Relay
2026-12-01 8:56 ` Jian Hu via B4 Relay
2026-12-01 8:56 ` [PATCH RFC RFT v3 10/13] clk: meson: s4: " Jian Hu via B4 Relay
2026-12-01 8:56 ` Jian Hu via B4 Relay
2026-12-01 8:56 ` Jian Hu
2026-12-01 8:56 ` [PATCH RFC RFT v3 11/13] clk: meson: s7: " Jian Hu via B4 Relay
2026-12-01 8:56 ` Jian Hu via B4 Relay
2026-12-01 8:56 ` Jian Hu
2026-12-01 11:37 ` Carlo Caione
2026-12-01 11:37 ` Carlo Caione
2026-12-01 8:56 ` [PATCH RFC RFT v3 12/13] clk: meson: t7: " Jian Hu
2026-12-01 8:56 ` Jian Hu via B4 Relay
2026-12-01 8:56 ` Jian Hu via B4 Relay
2026-12-01 8:56 ` [PATCH RFC RFT v3 13/13] clk: meson: pll: Remove the dedicated n parameter Jian Hu
2026-12-01 8:56 ` Jian Hu via B4 Relay
2026-12-01 8:56 ` Jian Hu via B4 Relay
2026-12-01 9:28 ` sashiko-bot [this message]
2026-12-01 9:28 ` sashiko-bot
2026-12-01 13:16 ` Carlo Caione
2026-12-01 13:16 ` Carlo Caione
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=sashiko-outbox-242976@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jian.hu@amlogic.com \
--cc=linux-amlogic@lists.infradead.org \
--cc=linux-clk@vger.kernel.org \
--cc=neil.armstrong@linaro.org \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.