From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
To: "H. Nikolaus Schaller" <hns@goldelico.com>
Cc: Rob Herring <robh+dt@kernel.org>,
Paul Cercueil <paul@crapouillou.net>,
Thomas Bogendoerfer <tsbogend@alpha.franken.de>,
linux-kernel@vger.kernel.org, devicetree@vger.kernel.org,
linux-mips@vger.kernel.org, letux-kernel@openphoenux.org
Subject: Re: [PATCH 01/18] MIPS: DTS: jz4780: remove cpu clock-names as reported by dtbscheck
Date: Sat, 9 Apr 2022 15:10:12 +0200 [thread overview]
Message-ID: <fb3d736e-4943-fba5-949e-f7c00829facf@linaro.org> (raw)
In-Reply-To: <B8D9DAF0-435B-4701-84E4-580FAA9CE74F@goldelico.com>
On 09/04/2022 15:02, H. Nikolaus Schaller wrote:
> Hi Krzysztof,
>
>> Am 09.04.2022 um 13:07 schrieb Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>:
>>
>> On 08/04/2022 20:37, H. Nikolaus Schaller wrote:
>>> arch/mips/boot/dts/ingenic/ci20.dtb: cpu@0: clock-names does not match any of the regexes: pinctrl-[0-9]+
>>> From schema: Documentation/devicetree/bindings/mips/ingenic/ingenic,cpu.yaml
>>> arch/mips/boot/dts/ingenic/ci20.dtb: cpu@1: clock-names does not match any of the regexes: pinctrl-[0-9]+
>>> From schema: Documentation/devicetree/bindings/mips/ingenic/ingenic,cpu.yaml
>>
>> No need to put the same warning twice (cpu index really does not
>> matter). One warning is enough.
>
> Well, how can you as a reviewer see immediately that dtbscheck
> warns for both instances and that they are both really fixed by the
> complete patch?
>
> Assume there were only the first one mentioned and the second one
> forgotten to fix...
>
> If it is not included here (completely), you have to run dtbscheck
> yourself to see that there are two instances involved. Or deduce it
> from looking into the source file.
>
> In both cases much more work for you or other reviewers.
>
> This is why I have kept this redundancy. One commit hunk for every
> warning line.
>
> And it may only look redundant in the commit message, not in code
> where it would really hurt to have duplication.
Sorry, but the second warning is obvious. It really does not bring any
information and better to keep things simple and concise. Concise helps
to read/understand the commit.
>
>>
>> Fixing warnings is good, but what if the property should be there and
>> the bindings are not correct? If you know the answer, please add it to
>> the commit msg.
>
> It has of course been tested on real hardware.
Good, but it's not everything. DTS is a description of hardware and we
might want to have the extended description, e.g. with clock-names.
> There was only one case where the bindings seem to be wrong (patch 13/18).
>
> And usually I simply assume such generic bindings are tested on many
> other platforms and therefore the reference. What are bindings and
> dtbscheck good for if we doubt them as DTS developers?
You should always doubt, knowing how incompletely or poorly bindings
were written or converted (including the ones I was doing myself).
>
>> This applies to all your patches. Blind fixing of DTS warnings my
>> produce incorrect results. :(
>
> Every patch of this series has been tested on real hardware to have
> no negative side-effects.
Which is not everything. DTS might be used in other projects - did you
test them as well?
Best regards,
Krzysztof
next prev parent reply other threads:[~2022-04-09 13:10 UTC|newest]
Thread overview: 83+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-08 18:37 [PATCH 00/18] MIPS: DTS: fix some findings by "make ci20_defconfig dt_binding_check dtbs_check" H. Nikolaus Schaller
2022-04-08 18:37 ` [PATCH 01/18] MIPS: DTS: jz4780: remove cpu clock-names as reported by dtbscheck H. Nikolaus Schaller
2022-04-09 11:07 ` Krzysztof Kozlowski
2022-04-09 13:02 ` H. Nikolaus Schaller
2022-04-09 13:10 ` Krzysztof Kozlowski [this message]
2022-04-08 18:37 ` [PATCH 02/18] MIPS: DTS: jz4780: fix cgu " H. Nikolaus Schaller
2022-04-09 11:07 ` Krzysztof Kozlowski
2022-04-08 18:37 ` [PATCH 03/18] MIPS: DTS: jz4780: fix tcu timer " H. Nikolaus Schaller
2022-04-09 11:11 ` Krzysztof Kozlowski
2022-04-09 12:24 ` Paul Cercueil
2022-04-09 12:38 ` Krzysztof Kozlowski
2022-04-09 13:12 ` H. Nikolaus Schaller
2022-04-09 13:03 ` H. Nikolaus Schaller
2022-04-09 13:11 ` Krzysztof Kozlowski
2022-04-09 13:18 ` H. Nikolaus Schaller
2022-04-09 13:22 ` Krzysztof Kozlowski
2022-04-09 13:30 ` H. Nikolaus Schaller
2022-04-08 18:37 ` [PATCH 04/18] MIPS: DTS: jz4780: fix ost " H. Nikolaus Schaller
2022-04-09 11:12 ` Krzysztof Kozlowski
2022-04-08 18:37 ` [PATCH 05/18] MIPS: DTS: jz4780: fix pinctrl " H. Nikolaus Schaller
2022-04-09 11:13 ` Krzysztof Kozlowski
2022-04-09 13:04 ` H. Nikolaus Schaller
2022-04-09 13:13 ` Krzysztof Kozlowski
2022-04-09 13:22 ` H. Nikolaus Schaller
2022-04-09 13:24 ` Krzysztof Kozlowski
2022-04-09 13:41 ` H. Nikolaus Schaller
2022-04-09 13:46 ` Krzysztof Kozlowski
2022-04-09 13:57 ` H. Nikolaus Schaller
2022-04-09 14:00 ` Krzysztof Kozlowski
2022-04-09 14:06 ` H. Nikolaus Schaller
2022-04-08 18:37 ` [PATCH 06/18] MIPS: DTS: jz4780: fix rtc node " H. Nikolaus Schaller
2022-04-09 11:14 ` Krzysztof Kozlowski
2022-04-09 13:04 ` H. Nikolaus Schaller
2022-04-08 18:37 ` [PATCH 07/18] MIPS: DTS: jz4780: fix otg " H. Nikolaus Schaller
2022-04-09 11:15 ` Krzysztof Kozlowski
2022-04-09 12:27 ` Paul Cercueil
2022-04-09 13:18 ` H. Nikolaus Schaller
2022-04-09 13:23 ` Krzysztof Kozlowski
2022-04-09 13:37 ` H. Nikolaus Schaller
2022-04-09 13:43 ` Paul Cercueil
2022-04-09 13:05 ` H. Nikolaus Schaller
2022-04-09 13:15 ` Krzysztof Kozlowski
2022-04-09 13:32 ` H. Nikolaus Schaller
2022-04-09 13:44 ` Krzysztof Kozlowski
2022-04-09 13:53 ` H. Nikolaus Schaller
2022-04-10 16:32 ` Zhou Yanjie
2022-04-10 19:13 ` H. Nikolaus Schaller
2022-04-12 9:49 ` Zhou Yanjie
2022-04-12 11:15 ` H. Nikolaus Schaller
2022-04-08 18:37 ` [PATCH 08/18] MIPS: DTS: jz4780: fix lcd controllers " H. Nikolaus Schaller
2022-04-09 11:17 ` Krzysztof Kozlowski
2022-04-08 18:37 ` [PATCH 09/18] MIPS: DTS: jz4780: fix dma-controller " H. Nikolaus Schaller
2022-04-09 11:17 ` Krzysztof Kozlowski
2022-04-08 18:37 ` [PATCH 10/18] MIPS: DTS: jz4780: fix uart dmas " H. Nikolaus Schaller
2022-04-09 11:18 ` Krzysztof Kozlowski
2022-04-09 13:07 ` H. Nikolaus Schaller
2022-04-09 13:16 ` Krzysztof Kozlowski
2022-04-09 13:26 ` H. Nikolaus Schaller
2022-04-09 13:28 ` Krzysztof Kozlowski
2022-04-09 13:46 ` H. Nikolaus Schaller
2022-04-08 18:37 ` [PATCH 11/18] MIPS: DTS: jz4780: fix i2c " H. Nikolaus Schaller
2022-04-08 18:37 ` [PATCH 12/18] MIPS: DTS: jz4780: fix nemc memory controller " H. Nikolaus Schaller
2022-04-09 11:18 ` Krzysztof Kozlowski
2022-04-08 18:37 ` [PATCH 13/18] dt-bindings: fix jz4780-nemc issue " H. Nikolaus Schaller
2022-04-09 11:26 ` Krzysztof Kozlowski
2022-04-09 12:37 ` Paul Cercueil
2022-04-09 12:47 ` Krzysztof Kozlowski
2022-04-09 12:55 ` Paul Cercueil
2022-04-09 13:01 ` Krzysztof Kozlowski
2022-04-09 13:09 ` H. Nikolaus Schaller
2022-04-09 13:18 ` Krzysztof Kozlowski
2022-04-10 15:35 ` Krzysztof Kozlowski
2022-04-10 19:13 ` H. Nikolaus Schaller
2022-04-10 15:27 ` Rob Herring
2022-04-08 18:37 ` [PATCH 14/18] MIPS: DTS: CI20: add missing model " H. Nikolaus Schaller
2022-04-08 18:37 ` [PATCH 15/18] MIPS: DTS: CI20: fix fixed regulators " H. Nikolaus Schaller
2022-04-09 11:20 ` Krzysztof Kozlowski
2022-04-08 18:37 ` [PATCH 16/18] MIPS: DTS: CI20: fix /memory " H. Nikolaus Schaller
2022-04-08 18:38 ` [PATCH 17/18] MIPS: DTS: CI20: fix wifi " H. Nikolaus Schaller
2022-04-09 11:21 ` Krzysztof Kozlowski
2022-04-08 18:38 ` [PATCH 18/18] MIPS: DTS: CI20: fix bluetooth " H. Nikolaus Schaller
2022-04-09 11:22 ` Krzysztof Kozlowski
2022-04-09 13:10 ` H. Nikolaus Schaller
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=fb3d736e-4943-fba5-949e-f7c00829facf@linaro.org \
--to=krzysztof.kozlowski@linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=hns@goldelico.com \
--cc=letux-kernel@openphoenux.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@vger.kernel.org \
--cc=paul@crapouillou.net \
--cc=robh+dt@kernel.org \
--cc=tsbogend@alpha.franken.de \
/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).