devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Krzysztof Kozlowski <krzk@kernel.org>
To: 郑豪威 <zhenghaowei@loongson.cn>,
	gregkh@linuxfoundation.org, jirislaby@kernel.org,
	robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org,
	chenhuacai@kernel.org, kernel@xen0n.name, p.zabel@pengutronix.de
Cc: linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org,
	devicetree@vger.kernel.org, loongarch@lists.linux.dev
Subject: Re: [PATCH v2 1/3] dt-bindings: serial: Add Loongson UART controller
Date: Fri, 9 Aug 2024 07:53:22 +0200	[thread overview]
Message-ID: <601adbfd-fbb6-48c6-b755-da1b5d321d6b@kernel.org> (raw)
In-Reply-To: <f31609c4-1e47-49bc-9231-5b0353d35dc9@loongson.cn>

On 07/08/2024 10:23, 郑豪威 wrote:
> 
> 在 2024/8/4 16:43, Krzysztof Kozlowski 写道:
>> On 04/08/2024 08:38,zhenghaowei@loongson.cn wrote:
>>
>> Due to lack of changelog, I assume you send the same patch, so:
>>
>> <form letter>
>> This is a friendly reminder during the review process.
>>
>> It seems my or other reviewer's previous comments were not fully
>> addressed. Maybe the feedback got lost between the quotes, maybe you
>> just forgot to apply it. Please go back to the previous discussion and
>> either implement all requested changes or keep discussing them.
>>
>> Thank you.
>> </form letter>
>>
>> Also:
>>
>>> +
>>> +  clocks:
>>> +    maxItems: 1
>>> +
>>> +  fractional-division:
>> Where are this and following defined? In which schema?
>>
> These and the ones below are new definitions, can I use them like this?
> 
> +  fractional-division:
> +    description: Enables fractional-N division. Currently,
> +      only LS2K1500 and LS2K2000 support this feature.
> +    type: boolean
> 

Missing vendor prefix, but what's more important, why would this be
property of DT? Just enable it always...

>>> +    description: Enables fractional-N division. Currently,
>>> +      only LS2K1500 and LS2K2000 support this feature.
>>> +
>>> +  rts-invert:
>>> +    description: Inverts the RTS value in the MCR register.
>>> +      This should be used on Loongson-3 series CPUs, Loongson-2K
>>> +      series CPUs, and Loongson LS7A bridge chips.
>>> +
>>> +  dtr-invert:
>>> +    description: Inverts the DTR value in the MCR register.
>>> +      This should be used on Loongson-3 series CPUs, Loongson-2K
>>> +      series CPUs, and Loongson LS7A bridge chips.
>>> +
>>> +  cts-invert:
>>> +    description: Inverts the CTS value in the MSR register.
>>> +      This should be used on Loongson-2K0500, Loongson-2K1000,
>>> +      and Loongson LS7A bridge chips.
>>> +
>>> +  dsr-invert:
>>> +    description: Inverts the DSR value in the MSR register.
>>> +      This should be used on Loongson-2K0500, Loongson-2K1000,
>>> +      and Loongson LS7A bridge chips.

Same questions for all these. Why choosing invert is a board level
decision? If it "should be used" then why it is not used always?

>>> +
>>> +required:
>>> +  - compatible
>>> +  - reg
>>> +  - interrupts
>>> +  - clocks
>>> +
>>> +allOf:
>>> +  - $ref: serial.yaml
>>> +
>>> +unevaluatedProperties: false
>>> +
>>> +examples:
>>> +  - |
>>> +    #include <dt-bindings/interrupt-controller/irq.h>
>>> +    #include <dt-bindings/clock/loongson,ls2k-clk.h>
>>> +
>>> +    serial@1fe001e0 {
>>> +        compatible = "loongson,ls7a-uart";
>>> +        reg = <0x0 0x1fe001e0 0x0 0x10>;
>>> +        clock-frequency = <100000000>;
>>> +        interrupt-parent = <&liointc>;
>>> +        interrupts = <10 IRQ_TYPE_LEVEL_HIGH>;
>>> +        fractional-division;
>>> +        rts-invert;
>>> +        dtr-invert;
>>> +    };
>>> diff --git a/MAINTAINERS b/MAINTAINERS
>>> index 8766f3e5e87e..a6306327dba5 100644
>>> --- a/MAINTAINERS
>>> +++ b/MAINTAINERS
>>> @@ -13189,6 +13189,13 @@ S:	Maintained
>>>   F:	Documentation/devicetree/bindings/i2c/loongson,ls2x-i2c.yaml
>>>   F:	drivers/i2c/busses/i2c-ls2x.c
>>>   
>>> +LOONGSON UART DRIVER
>>> +M:	Haowei Zheng<zhenghaowei@loongson.cn>
>>> +L:	linux-serial@vger.kernel.org
>>> +S:	Maintained
>>> +F:	Documentation/devicetree/bindings/serial/loongson,ls7a-uart.yaml
>>> +F:	drivers/tty/serial/8250/8250_loongson.c
>> There is no such file.
>>
>> Best regards,
>> Krzysztof
> 
> The file "drivers/tty/serial/8250/8250_loongson.c" will be created in 
> the patch
> 
> "tty: serial: 8250: Add loongson uart driver support". Is it 
> inappropriate to reference it here?

Apply this patch and run get_maintainers self tests. What do you see?

Of course it is not appropriate here. The file does not exist.

Best regards,
Krzysztof


  parent reply	other threads:[~2024-08-09  5:53 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-04  6:38 [PATCH v2 1/3] dt-bindings: serial: Add Loongson UART controller zhenghaowei
2024-08-04  6:38 ` [PATCH v2 2/3] tty: serial: 8250: Add loongson uart driver support zhenghaowei
2024-08-04  7:13   ` Christophe JAILLET
2024-08-04 15:11   ` kernel test robot
2024-08-04 15:33   ` Krzysztof Kozlowski
2024-08-07  8:24     ` 郑豪威
2024-08-09  5:57       ` Krzysztof Kozlowski
2024-08-04 16:42   ` kernel test robot
2024-08-04  6:38 ` [PATCH v2 3/3] LoongArch: dts: Update UART driver to Loongson-2K0500, Loongson-2K1000 and Loongson-2K2000 zhenghaowei
2024-08-04  8:40   ` Krzysztof Kozlowski
2024-08-07  8:23     ` 郑豪威
2024-08-04  7:23 ` [PATCH v2 1/3] dt-bindings: serial: Add Loongson UART controller Rob Herring (Arm)
2024-08-04  8:41 ` Krzysztof Kozlowski
2024-08-07  8:23   ` 郑豪威
2024-08-04  8:43 ` Krzysztof Kozlowski
2024-08-07  8:23   ` 郑豪威
2024-08-07  8:39     ` Xi Ruoyao
2024-08-07  9:01       ` 郑豪威
2024-08-09  5:53     ` Krzysztof Kozlowski [this message]
2024-08-09  9:55       ` 郑豪威
2024-08-09 10:05         ` Krzysztof Kozlowski
2024-08-12  8:09           ` 郑豪威
2024-08-12  8:25             ` Krzysztof Kozlowski
2024-08-25  3:34               ` 郑豪威
2024-08-25  6:55                 ` Krzysztof Kozlowski
2024-08-25  8:24                   ` 郑豪威

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=601adbfd-fbb6-48c6-b755-da1b5d321d6b@kernel.org \
    --to=krzk@kernel.org \
    --cc=chenhuacai@kernel.org \
    --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-kernel@vger.kernel.org \
    --cc=linux-serial@vger.kernel.org \
    --cc=loongarch@lists.linux.dev \
    --cc=p.zabel@pengutronix.de \
    --cc=robh@kernel.org \
    --cc=zhenghaowei@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;
as well as URLs for NNTP newsgroup(s).