public inbox for linux-serial@vger.kernel.org
 help / color / mirror / Atom feed
From: Krzysztof Kozlowski <krzk@kernel.org>
To: Binbin Zhou <zhoubb.aaron@gmail.com>
Cc: Binbin Zhou <zhoubinbin@loongson.cn>,
	Huacai Chen <chenhuacai@loongson.cn>,
	Rob Herring <robh+dt@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Jiri Slaby <jirislaby@kernel.org>,
	Haowei Zheng <zhenghaowei@loongson.cn>,
	Huacai Chen <chenhuacai@kernel.org>,
	Xuerui Wang <kernel@xen0n.name>,
	loongarch@lists.linux.dev, devicetree@vger.kernel.org,
	linux-serial@vger.kernel.org
Subject: Re: [PATCH v4 3/3] LoongArch: dts: Add uart new compatible string
Date: Thu, 11 Sep 2025 11:00:22 +0200	[thread overview]
Message-ID: <58fd8506-678e-409d-8283-1dc44c9aa8e2@kernel.org> (raw)
In-Reply-To: <CAMpQs4K-6Re=-gELPEg8kP_NKR5_1U=BD6fnXM3wgUF+eMtpGg@mail.gmail.com>

On 11/09/2025 09:55, Binbin Zhou wrote:
> Hi Krzysztof:
> 
> Thanks for your reply.
> 
> On Wed, Sep 10, 2025 at 4:27 PM Krzysztof Kozlowski <krzk@kernel.org> wrote:
>>
>> On Tue, Sep 09, 2025 at 08:11:20PM +0800, Binbin Zhou wrote:
>>> Add loongson,ls2k*-uart compatible string on uarts.
>>>
>>> Co-developed-by: Haowei Zheng <zhenghaowei@loongson.cn>
>>> Signed-off-by: Haowei Zheng <zhenghaowei@loongson.cn>
>>> Signed-off-by: Binbin Zhou <zhoubinbin@loongson.cn>
>>> ---
>>>  arch/loongarch/boot/dts/loongson-2k0500.dtsi | 2 +-
>>>  arch/loongarch/boot/dts/loongson-2k1000.dtsi | 2 +-
>>>  arch/loongarch/boot/dts/loongson-2k2000.dtsi | 2 +-
>>>  3 files changed, 3 insertions(+), 3 deletions(-)
>>>
>>> diff --git a/arch/loongarch/boot/dts/loongson-2k0500.dtsi b/arch/loongarch/boot/dts/loongson-2k0500.dtsi
>>> index 588ebc3bded4..357de4ca7555 100644
>>> --- a/arch/loongarch/boot/dts/loongson-2k0500.dtsi
>>> +++ b/arch/loongarch/boot/dts/loongson-2k0500.dtsi
>>> @@ -380,7 +380,7 @@ tsensor: thermal-sensor@1fe11500 {
>>>               };
>>>
>>>               uart0: serial@1ff40800 {
>>> -                     compatible = "ns16550a";
>>> +                     compatible = "loongson,ls2k0500-uart", "ns16550a";
>>
>> You clearly never bothered to actually test this against own code.
> 
> Sorry, perhaps I should have included more detailed descriptions in
> the binding file.
> 
> As per Chapter 15 of the Loongson-3A5000 manual[1], the Loongson UART
> registers and functionality are compatible with the NS16550A. However,
> generic 16550A drivers cannot support full serial port capabilities,
> such as hardware flow control.
> 
> Based on your feedback in the V3 patchset[2], I attempted to use
> compatible fallbacks to avoid API breakage.
> 
> These fallbacks match according to the Makefile's compilation

DT bindings and fallbacks in DTS cannot match Makefile. You are mixing
concepts.

I said, this was not tested. I am 100% sure. Instead of replying with
irrelevant build related stuff, please come with actual arguments, e.g.
output (on some pastebin.com) of entire dtbs_check proving no new
warnings are there.

But even without warnings, I see with my own eyes that DTS is just
wrong. Or bindings.

Best regards,
Krzysztof

  reply	other threads:[~2025-09-11  9:00 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-09 12:11 [PATCH v4 0/3] uart: Introduce uart driver for the Loongson family Binbin Zhou
2025-09-09 12:11 ` [PATCH v4 1/3] dt-bindings: serial: Add Loongson UART controller Binbin Zhou
2025-09-10  8:26   ` Krzysztof Kozlowski
2025-09-10  8:28   ` Krzysztof Kozlowski
2025-09-12  6:06     ` Binbin Zhou
2025-09-09 12:11 ` [PATCH v4 2/3] serial: 8250: Add Loongson uart driver support Binbin Zhou
2025-09-10 11:05   ` kernel test robot
2025-09-10 11:26   ` kernel test robot
2025-09-09 12:11 ` [PATCH v4 3/3] LoongArch: dts: Add uart new compatible string Binbin Zhou
2025-09-10  8:27   ` Krzysztof Kozlowski
2025-09-11  7:55     ` Binbin Zhou
2025-09-11  9:00       ` Krzysztof Kozlowski [this message]
2025-09-12  6:22         ` Binbin Zhou

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=58fd8506-678e-409d-8283-1dc44c9aa8e2@kernel.org \
    --to=krzk@kernel.org \
    --cc=chenhuacai@kernel.org \
    --cc=chenhuacai@loongson.cn \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=jirislaby@kernel.org \
    --cc=kernel@xen0n.name \
    --cc=krzk+dt@kernel.org \
    --cc=linux-serial@vger.kernel.org \
    --cc=loongarch@lists.linux.dev \
    --cc=robh+dt@kernel.org \
    --cc=zhenghaowei@loongson.cn \
    --cc=zhoubb.aaron@gmail.com \
    --cc=zhoubinbin@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