public inbox for devicetree@vger.kernel.org
 help / color / mirror / Atom feed
From: Krzysztof Kozlowski <krzk@kernel.org>
To: wjjsn <wjjsn@qq.com>,
	robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org,
	chenhuacai@kernel.org, zhuyinbo@loongson.cn,
	mturquette@baylibre.com, sboyd@kernel.org
Cc: linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org,
	loongarch@lists.linux.dev, kernel@xen0n.name,
	devicetree@vger.kernel.org, wjjsn <2858482031@qq.com>
Subject: Re: [PATCH 2/2] clk: loongson2: add support for ls2k1000 compatible
Date: Sun, 22 Mar 2026 09:55:32 +0100	[thread overview]
Message-ID: <8cb8ec5d-770e-477d-af5b-efaef8a3973a@kernel.org> (raw)
In-Reply-To: <tencent_19D06CEA85762ACE74DF6B745A2EE0BCAA06@qq.com>

On 22/03/2026 09:03, wjjsn wrote:
> From: wjjsn <2858482031@qq.com>
> 
> Add driver support for the "loongson,ls2k1000-clk" compatible
> and update the Loongson-2K1000 DTS to use it while retaining
> "loongson,ls2k-clk" as a fallback.
> 
> Signed-off-by: wjjsn <wjjsn@qq.com>
> ---
>  arch/loongarch/boot/dts/loongson-2k1000.dtsi | 2 +-

This is not driver.

>  drivers/clk/clk-loongson2.c                  | 1 +

Why are you combining these? Please read submitting patches in DT and
maintainer-soc profile to understand. Then read submitting patches and
split your code in logical chunks.

>  2 files changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/arch/loongarch/boot/dts/loongson-2k1000.dtsi b/arch/loongarch/boot/dts/loongson-2k1000.dtsi
> index ab6a55937e9e..61cdae438cb0 100644
> --- a/arch/loongarch/boot/dts/loongson-2k1000.dtsi
> +++ b/arch/loongarch/boot/dts/loongson-2k1000.dtsi
> @@ -156,7 +156,7 @@ pctrl: pinctrl@1fe00420 {
>  		};
>  
>  		clk: clock-controller@1fe00480 {
> -			compatible = "loongson,ls2k-clk";
> +			compatible = "loongson,ls2k1000-clk", "loongson,ls2k-clk";

You never tested your code. You have warning here.

>  			reg = <0x0 0x1fe00480 0x0 0x58>;
>  			#clock-cells = <1>;
>  			clocks = <&ref_100m>;
> diff --git a/drivers/clk/clk-loongson2.c b/drivers/clk/clk-loongson2.c
> index 9c4c6c99db3e..48d00578b26f 100644
> --- a/drivers/clk/clk-loongson2.c
> +++ b/drivers/clk/clk-loongson2.c
> @@ -441,6 +441,7 @@ static const struct of_device_id loongson2_clk_match_table[] = {
>  	{ .compatible = "loongson,ls2k0300-clk", .data = &ls2k0300_clks },
>  	{ .compatible = "loongson,ls2k0500-clk", .data = &ls2k0500_clks },
>  	{ .compatible = "loongson,ls2k-clk", .data = &ls2k1000_clks },
> +	{ .compatible = "loongson,ls2k1000-clk", .data = &ls2k1000_clks },

What is the point of this change? It's redundant.

>  	{ .compatible = "loongson,ls2k2000-clk", .data = &ls2k2000_clks },
>  	{ }
>  };


Best regards,
Krzysztof

      reply	other threads:[~2026-03-22  8:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20260322080327.1606799-1-wjjsn@qq.com>
2026-03-22  8:03 ` [PATCH 1/2] dt-bindings: clock: loongson,ls2k: add ls2k1000 compatible wjjsn
2026-03-22  8:55   ` Krzysztof Kozlowski
2026-03-22  8:03 ` [PATCH 2/2] clk: loongson2: add support for " wjjsn
2026-03-22  8:55   ` Krzysztof Kozlowski [this message]

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=8cb8ec5d-770e-477d-af5b-efaef8a3973a@kernel.org \
    --to=krzk@kernel.org \
    --cc=2858482031@qq.com \
    --cc=chenhuacai@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=kernel@xen0n.name \
    --cc=krzk+dt@kernel.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=loongarch@lists.linux.dev \
    --cc=mturquette@baylibre.com \
    --cc=robh@kernel.org \
    --cc=sboyd@kernel.org \
    --cc=wjjsn@qq.com \
    --cc=zhuyinbo@loongson.cn \
    /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