mirror of https://lore.kernel.org/linux-amlogic/
 help / color / mirror / Atom feed
From: Jerome Brunet <jbrunet@baylibre.com>
To: Jian Hu <jian.hu@amlogic.com>
Cc: sashiko-reviews@lists.linux.dev, 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,
	 Jerome Brunet <jbrunet@baylibre.com>
Subject: Re: [PATCH RFC RFT v3 07/13] clk: meson: gxbb: Model the PLL pre-divider as a divider clock
Date: Thu, 03 Dec 2026 16:10:08 +0100	[thread overview]
Message-ID: <179631060852.3767986.14591587256472203348.b4-reply@b4> (raw)
In-Reply-To: <77c5295f-f5f9-4b43-b4ab-265300d0897a@amlogic.com>

On 2026-12-02 17:19:31+08:00, Jian Hu wrote:
> On 12/1/2026 5:16 PM, sashiko-bot@kernel.org wrote:
> 
> > Thank you for your contribution! Sashiko AI review found 2 potential
> > issues to consider:
> > - [High] clk: meson: gxbb: accidental revert of gxbb_cts_encp_sel mux
> >    shift to 20
> > - [Medium] clk: meson: gxbb: missing zero-divisor flag on gxbb and gxl
> >    hdmi_prediv
> > --
> >
> > commit 3ea24038e4185d59261a086515637e35e0fcb1ea
> > Author: Jian Hu <jian.hu@amlogic.com>
> >
> > clk: meson: gxbb: Model the PLL pre-divider as a divider clock
> >
> > This commit models the GXBB and GXL PLL pre-dividers as separate divider
> > clocks parenting the DCOs and replaces the GP0 PLL parameter tables with
> > multiplier ranges.
> >
> > [ ... ]
> > [ ... ]
> > [Severity: Medium]
> > Should gxbb_hdmi_prediv and gxl_hdmi_prediv also set
> > CLK_DIVIDER_INVALID_ZERO?
> >
> > Previously, meson_clk_pll_recalc_rate() returned 0 when the pre-divider n
> > field read 0.  With only CLK_DIVIDER_ONE_BASED, if HHI_HDMI_PLL_CNTL[13:9]
> > is 0 at boot before the display driver initializes the HDMI PLL,
> > divider_recalc_rate() triggers a WARN() during clock registration and
> > returns the parent rate instead of 0 Hz.
> 
> Unlike G12A, the HDMI PLL on GXL and GXBB is pre-initialized by firmware.
> The divider register reads back as 1 rather than 0 at clock registration 
> time,
> so we do not need `CLK_DIVIDER_INVALID_ZERO` and no WARN will be triggered.
> 
> 
> I will add comment for hdmi_prediv in v3.

I think it is safer to follow sashiko advice on this

-- 
Jerome


_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic

  reply	other threads:[~2026-12-03 15:10 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-01  8:56 [PATCH RFC RFT v3 00/13] clk: meson: Refactor " Jian Hu via B4 Relay
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  9:10   ` sashiko-bot
2026-12-03  7:58     ` Jian Hu
2026-12-03 15:34     ` Jerome Brunet
2026-12-03 15:31   ` Jerome Brunet
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 ` [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 ` [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  9:11   ` sashiko-bot
2026-12-03 15:31   ` Jerome Brunet
2026-12-01  8:56 ` [PATCH RFC RFT v3 05/13] clk: meson: a1: " Jian Hu via B4 Relay
2026-12-03 15:31   ` Jerome Brunet
2026-12-01  8:56 ` [PATCH RFC RFT v3 06/13] clk: meson: c3: " Jian Hu via B4 Relay
2026-12-03 15:31   ` Jerome Brunet
2026-12-01  8:56 ` [PATCH RFC RFT v3 07/13] clk: meson: gxbb: " Jian Hu via B4 Relay
2026-12-01  9:16   ` sashiko-bot
2026-12-02  9:19     ` Jian Hu
2026-12-03 15:10       ` Jerome Brunet [this message]
2026-12-03 15:31   ` Jerome Brunet
2026-12-01  8:56 ` [PATCH RFC RFT v3 08/13] clk: meson: g12a: " Jian Hu via B4 Relay
2026-12-01  9:19   ` sashiko-bot
2026-12-03  2:30     ` Jian Hu
2026-12-01  8:56 ` [PATCH RFC RFT v3 09/13] clk: meson: meson8: " Jian Hu via B4 Relay
2026-12-03 15:31   ` Jerome Brunet
2026-12-01  8:56 ` [PATCH RFC RFT v3 10/13] clk: meson: s4: " Jian Hu via B4 Relay
2026-12-01  8:56 ` [PATCH RFC RFT v3 11/13] clk: meson: s7: " Jian Hu via B4 Relay
2026-12-01 11:37   ` Carlo Caione
2026-12-01  8:56 ` [PATCH RFC RFT v3 12/13] clk: meson: t7: " Jian Hu via B4 Relay
2026-12-03 15:31   ` Jerome Brunet
2026-12-01  8:56 ` [PATCH RFC RFT v3 13/13] clk: meson: pll: Remove the dedicated n parameter Jian Hu via B4 Relay
2026-12-01  9:28   ` sashiko-bot
2026-12-01 13:16   ` Carlo Caione
2026-12-03 15:31   ` Jerome Brunet

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=179631060852.3767986.14591587256472203348.b4-reply@b4 \
    --to=jbrunet@baylibre.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®