[PATCH RFC RFT v3 07/13] clk: meson: gxbb: Model the PLL pre-divider as a divider clock

Jerome Brunet jbrunet at baylibre.com
Thu Dec 3 07:10:08 PST 2026


On 2026-12-02 17:19:31+08:00, Jian Hu wrote:
> On 12/1/2026 5:16 PM, sashiko-bot at 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 at 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




More information about the linux-amlogic mailing list