Devicetree
 help / color / mirror / Atom feed
From: Krzysztof Kozlowski <krzk@kernel.org>
To: Artur Weber <aweber.kernel@gmail.com>
Cc: Michael Turquette <mturquette@baylibre.com>,
	 Stephen Boyd <sboyd@kernel.org>,
	Florian Fainelli <florian.fainelli@broadcom.com>,
	 Ray Jui <rjui@broadcom.com>,
	Scott Branden <sbranden@broadcom.com>,
	 Broadcom internal kernel review list
	<bcm-kernel-feedback-list@broadcom.com>,
	Rob Herring <robh@kernel.org>,
	 Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	 Alex Elder <elder@kernel.org>,
	Stanislav Jakubek <stano.jakubek@gmail.com>,
	 linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org,
	devicetree@vger.kernel.org,
	 ~postmarketos/upstreaming@lists.sr.ht
Subject: Re: [PATCH v3 1/9] clk: bcm: kona: Move CLOCK_COUNT defines into the driver
Date: Mon, 10 Mar 2025 09:40:57 +0100	[thread overview]
Message-ID: <20250310-proficient-free-antelope-abb6b7@krzk-bin> (raw)
In-Reply-To: <20250308-kona-bus-clock-v3-1-d6fb5bfc3b67@gmail.com>

On Sat, Mar 08, 2025 at 08:50:39AM +0100, Artur Weber wrote:
> CLOCK_COUNT defines for each CCU are stored in the DT binding header.
> This is not correct - they are not used by device trees, only internally
> by the driver.
> 
> Move the CLOCK_COUNT defines directly into the driver in preparation
> for dropping them from the DT binding include.
> 
> Signed-off-by: Artur Weber <aweber.kernel@gmail.com>
> ---
>  drivers/clk/bcm/clk-bcm21664.c |  8 ++++++++
>  drivers/clk/bcm/clk-bcm281xx.c | 10 ++++++++++
>  2 files changed, 18 insertions(+)
> 
> diff --git a/drivers/clk/bcm/clk-bcm21664.c b/drivers/clk/bcm/clk-bcm21664.c
> index 520c3aeb4ea9c4a431512c0909f9545c1761d17a..fa6e1649d6f5f459b63026109caea9e2f72e22dd 100644
> --- a/drivers/clk/bcm/clk-bcm21664.c
> +++ b/drivers/clk/bcm/clk-bcm21664.c
> @@ -17,6 +17,8 @@ static struct peri_clk_data frac_1m_data = {
>  	.clocks		= CLOCKS("ref_crystal"),
>  };
>  
> +#define BCM21664_ROOT_CCU_CLOCK_COUNT	(BCM21664_ROOT_CCU_FRAC_1M + 1)

I hit that wall too, no worries. It might surprise you but 0+1 != 1 :),
so you redefine a define. You need to test this patch bisectability.

Best regards,
Krzysztof


  reply	other threads:[~2025-03-10  8:41 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-08  7:50 [PATCH v3 0/9] clk: bcm: kona: Add bus clock support, bus clocks for BCM21664/BCM281xx Artur Weber
2025-03-08  7:50 ` [PATCH v3 1/9] clk: bcm: kona: Move CLOCK_COUNT defines into the driver Artur Weber
2025-03-10  8:40   ` Krzysztof Kozlowski [this message]
2025-03-16 19:01     ` Artur Weber
2025-03-17  7:29       ` Krzysztof Kozlowski
2025-03-08  7:50 ` [PATCH v3 2/9] dt-bindings: clock: brcm,kona-ccu: Drop CLOCK_COUNT defines from DT headers Artur Weber
2025-03-10  8:41   ` Krzysztof Kozlowski
2025-03-08  7:50 ` [PATCH v3 3/9] dt-bindings: clock: brcm,kona-ccu: Add BCM21664 bus clocks Artur Weber
2025-03-10  8:41   ` Krzysztof Kozlowski
2025-03-08  7:50 ` [PATCH v3 4/9] dt-bindings: clock: brcm,kona-ccu: Add BCM281xx " Artur Weber
2025-03-10  9:43   ` Krzysztof Kozlowski
2025-03-10 20:13     ` Artur Weber
2025-03-10 20:20     ` Artur Weber
2025-03-11  7:36       ` Krzysztof Kozlowski
2025-03-08  7:50 ` [PATCH v3 5/9] clk: bcm: kona: Add support for " Artur Weber
2025-03-08  7:50 ` [PATCH v3 6/9] clk: bcm21664: Add matching bus clocks for peripheral clocks Artur Weber
2025-03-08  7:50 ` [PATCH v3 7/9] clk: bcm281xx: Add corresponding " Artur Weber
2025-03-08  7:50 ` [PATCH v3 8/9] ARM: dts: bcm2166x-common: Add matching " Artur Weber
2025-03-08  7:50 ` [PATCH v3 9/9] ARM: dts: bcm11351: Add corresponding " Artur Weber

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=20250310-proficient-free-antelope-abb6b7@krzk-bin \
    --to=krzk@kernel.org \
    --cc=aweber.kernel@gmail.com \
    --cc=bcm-kernel-feedback-list@broadcom.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=elder@kernel.org \
    --cc=florian.fainelli@broadcom.com \
    --cc=krzk+dt@kernel.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mturquette@baylibre.com \
    --cc=rjui@broadcom.com \
    --cc=robh@kernel.org \
    --cc=sboyd@kernel.org \
    --cc=sbranden@broadcom.com \
    --cc=stano.jakubek@gmail.com \
    --cc=~postmarketos/upstreaming@lists.sr.ht \
    /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