[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20250821-bizarre-pigeon-of-unity-5a2d5d@kuoka>
Date: Thu, 21 Aug 2025 09:54:08 +0200
From: Krzysztof Kozlowski <krzk@...nel.org>
To: Yao Zi <ziyao@...root.org>
Cc: Drew Fustini <fustini@...nel.org>, Guo Ren <guoren@...nel.org>,
Fu Wei <wefu@...hat.com>, Philipp Zabel <p.zabel@...gutronix.de>,
Rob Herring <robh@...nel.org>, Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>, Paul Walmsley <paul.walmsley@...ive.com>,
Palmer Dabbelt <palmer@...belt.com>, Albert Ou <aou@...s.berkeley.edu>,
Alexandre Ghiti <alex@...ti.fr>, Michal Wilczynski <m.wilczynski@...sung.com>,
linux-riscv@...ts.infradead.org, devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
Icenowy Zheng <uwu@...nowy.me>, Han Gao <rabenda.cn@...il.com>, Han Gao <gaohan@...as.ac.cn>,
stable@...r.kernel.org
Subject: Re: [PATCH v2 1/3] dt-bindings: reset: Scope the compatible to VO
subsystem explicitly
On Wed, Aug 20, 2025 at 07:42:43AM +0000, Yao Zi wrote:
> The reset controller driver for the TH1520 was using the generic
> compatible string "thead,th1520-reset". However, the controller
> described by this compatible only manages the resets for the Video
> Output (VO) subsystem.
Please use subject prefixes matching the subsystem. You can get them for
example with 'git log --oneline -- DIRECTORY_OR_FILE' on the directory
your patch is touching. For bindings, the preferred subjects are
explained here:
https://www.kernel.org/doc/html/latest/devicetree/bindings/submitting-patches.html#i-for-patch-submitters
>
> Using a generic compatible is confusing as it implies control over all
> reset units on the SoC. This could lead to conflicts if support for
No, it won't lead to conflicts. Stop making up reasons.
> other reset controllers on the TH1520 is added in the future like AP.
>
> Let's introduce a new compatible string, "thead,th1520-reset-vo", to
> explicitly scope the controller to VO-subsystem. The old one is marked
> as deprecated.
>
> Fixes: 30e7573babdc ("dt-bindings: reset: Add T-HEAD TH1520 SoC Reset Controller")
> Cc: stable@...r.kernel.org
Especially for backporting... Describe the actual bug being fixed here.
> Reported-by: Icenowy Zheng <uwu@...nowy.me>
> Co-developed-by: Michal Wilczynski <m.wilczynski@...sung.com>
> Signed-off-by: Michal Wilczynski <m.wilczynski@...sung.com>
> Signed-off-by: Yao Zi <ziyao@...root.org>
> ---
> .../bindings/reset/thead,th1520-reset.yaml | 17 ++++++++---------
> 1 file changed, 8 insertions(+), 9 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/reset/thead,th1520-reset.yaml b/Documentation/devicetree/bindings/reset/thead,th1520-reset.yaml
> index f2e91d0add7a..3930475dcc04 100644
> --- a/Documentation/devicetree/bindings/reset/thead,th1520-reset.yaml
> +++ b/Documentation/devicetree/bindings/reset/thead,th1520-reset.yaml
> @@ -15,8 +15,11 @@ maintainers:
>
> properties:
> compatible:
> - enum:
> - - thead,th1520-reset
> + oneOf:
> + - enum:
> + - thead,th1520-reset-vo
> + - const: thead,th1520-reset
> + deprecated: true
This you can do, but none of this is getting to backports and your DTS
is a NAK. This basically means that this is kind of pointless.
Compatibles do not have particular meanings, so entire explanation that
it implies something is not true. We have been here, this was discussed
for other SoCs and you were told in v1 - don't do that.
You are stuck with the old compatible. Is here an issue to fix? No.
Best regards,
Krzysztof
Powered by blists - more mailing lists