Linux clock framework development
 help / color / mirror / Atom feed
From: "Xuyang Dong" <dongxuyang@eswincomputing.com>
To: "Marcel Ziswiler" <marcel@ziswiler.com>,
	mturquette@baylibre.com, sboyd@kernel.org, robh@kernel.org,
	krzk+dt@kernel.org, conor+dt@kernel.org,
	linux-clk@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org, troy.mitchell@linux.dev,
	bmasney@redhat.com
Cc: ningyu@eswincomputing.com, linmin@eswincomputing.com,
	huangyifeng@eswincomputing.com, pinkesh.vaghela@einfochips.com,
	ganboing@gmail.com
Subject: Re: Re: [PATCH v9 2/3] clock: eswin: Add eic7700 clock driver
Date: Sun, 4 Jan 2026 11:23:21 +0800 (GMT+08:00)	[thread overview]
Message-ID: <480d671d.1db1.19b8707eb98.Coremail.dongxuyang@eswincomputing.com> (raw)
In-Reply-To: <a7f4cf00b396096512d6947612031207c4d4459b.camel@ziswiler.com>

> > +
> > +/* divider clocks */
> > +static struct eswin_divider_clock eic7700_div_clks[] = {
> > +	EIC7700_DIV(EIC7700_CLK_DIV_SYS_CFG_DYNM, "divider_sys_cfg_div_dynm",
> > +		    "fixed_rate_clk_spll0_fout3", 0,
> > +		    EIC7700_REG_OFFSET_SYSCFG_CTRL, 4, 3,
> > +		    CLK_DIVIDER_ONE_BASED),
> > +	EIC7700_DIV(EIC7700_CLK_DIV_NOC_NSP_DYNM, "divider_noc_nsp_div_dynm",
> > +		    "fixed_rate_clk_spll2_fout1", 0,
> > +		    EIC7700_REG_OFFSET_NOC_CTRL, 0, 3, CLK_DIVIDER_ONE_BASED),
> > +	EIC7700_DIV(EIC7700_CLK_DIV_BOOTSPI_DYNM, "divider_bootspi_div_dynm",
> > +		    "gate_clk_spll0_fout2", 0, EIC7700_REG_OFFSET_BOOTSPI_CTRL,
> > +		    4, 6, CLK_DIVIDER_ONE_BASED),
> > +	EIC7700_DIV(EIC7700_CLK_DIV_SCPU_CORE_DYNM,
> > +		    "divider_scpu_core_div_dynm", "fixed_rate_clk_spll0_fout1",
> > +		    0, EIC7700_REG_OFFSET_SCPU_CORE_CTRL, 4, 4,
> > +		    CLK_DIVIDER_ONE_BASED),
> > +	EIC7700_DIV(EIC7700_CLK_DIV_LPCPU_CORE_DYNM,
> > +		    "divider_lpcpu_core_div_dynm", "fixed_rate_clk_spll0_fout1",
> > +		    0, EIC7700_REG_OFFSET_LPCPU_CORE_CTRL, 4, 4,
> > +		    CLK_DIVIDER_ONE_BASED),
> 
> During testing on top of next-20251219 I got the following:
> 
> [    0.126102] divider_lpcpu_core_div_dynm: Zero divisor and CLK_DIVIDER_ALLOW_ZERO not set
> [    0.126194] WARNING: drivers/clk/clk-divider.c:145 at divider_recalc_rate+0x8a/0x9c, CPU#0: swapper/0/1
> 
> Therefore I suggest for above line needing to be:
> 
> +                   CLK_DIVIDER_ONE_BASED | CLK_DIVIDER_ALLOW_ZERO),

Hi Marcel,

Thank you! This is indeed a bug and will be fixed in the next version. 
Could you please share the detailed testing methods with me so that I 
can reproduce this issue on my side?

Best regards,
Xuyang Dong

  reply	other threads:[~2026-01-04  3:23 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-12-29 10:58 [PATCH v9 0/3] Add driver support for ESWIN eic700 SoC clock controller dongxuyang
2025-12-29 10:59 ` [PATCH v9 1/3] dt-bindings: clock: eswin: Documentation for eic7700 SoC dongxuyang
2025-12-29 10:59 ` [PATCH v9 2/3] clock: eswin: Add eic7700 clock driver dongxuyang
2025-12-31  9:34   ` Marcel Ziswiler
2026-01-04  3:23     ` Xuyang Dong [this message]
2026-01-05 22:15       ` Marcel Ziswiler
2026-01-23  2:45   ` Stephen Boyd
2025-12-29 11:00 ` [PATCH v9 3/3] MAINTAINERS: Add entry for ESWIN EIC7700 " dongxuyang

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=480d671d.1db1.19b8707eb98.Coremail.dongxuyang@eswincomputing.com \
    --to=dongxuyang@eswincomputing.com \
    --cc=bmasney@redhat.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=ganboing@gmail.com \
    --cc=huangyifeng@eswincomputing.com \
    --cc=krzk+dt@kernel.org \
    --cc=linmin@eswincomputing.com \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marcel@ziswiler.com \
    --cc=mturquette@baylibre.com \
    --cc=ningyu@eswincomputing.com \
    --cc=pinkesh.vaghela@einfochips.com \
    --cc=robh@kernel.org \
    --cc=sboyd@kernel.org \
    --cc=troy.mitchell@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