๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #3824

Re: [PATCH net-next 18/37] dt-bindings: can: renesas,rcar-canfd: Restrict resets in top-level

#3824
From: netdev-bot+sashiko
Date: Fri, 16 Oct 2026 02:37
79 lines
8081 bytes
Thank you for your contribution! Sashiko AI review found more severe
issue(s) in other patches of this series. This mail is only an FYI, in case
you want to address the nit picks below when you respin.

Low priority / nit picks for your consideration:

- [Low] The commit message says the patch will "disallow" `reset-names`
  for the two variants that do not use it, i.e. renesas,rcar-gen3-canfdโ€ฆ

--

dt-bindings: can: renesas,rcar-canfd: Restrict resets in top-level

This patch gives the top-level resets property its broadest limits
(minItems 1, maxItems 2) and drops the now redundant per-variant
maxItems: 2. It also adds reset-names: false to the R-Car Gen3/Gen4
conditional block.

Link: https://patch.msgid.link/20261001060825.53335-2-krzysztof.kozlowski@oss.qualcomm.com

> Since top-level part says "reset-names" cannot accept one item, disallow
> it for the two variants which do not use it in practice.

[Severity: Low]
Is this part of the commit message accurate? Before this patch, the
binding already disallowed reset-names for renesas,rcar-gen3-canfd and
renesas,rcar-gen4-canfd, in a later allOf entry:

  - if:
      properties:
        compatible:
          contains:
            enum:
              - renesas,rcar-gen3-canfd
              - renesas,rcar-gen4-canfd
    then:
      required:
        - resets
      properties:
        reset-names: false

That block came from commit af6b427c7ad09 ("dt-bindings: can:
renesas,rcar-canfd: Specify reset-names") and commit 1e3710b1fe915
("dt-bindings: can: renesas,rcar-canfd: Document RZ/T2H and RZ/N2H
SoCs").

> diff --git a/Documentation/devicetree/bindings/net/can/renesas,rcar-canfd.yaml b/Documentation/devicetree/bindings/net/can/renesas,rcar-canfd.yaml
> index bbaaef8f4282..1a7a9ce45e97 100644
> --- a/Documentation/devicetree/bindings/net/can/renesas,rcar-canfd.yaml
> +++ b/Documentation/devicetree/bindings/net/can/renesas,rcar-canfd.yaml

[ ... ]

> @@ -231,6 +232,8 @@ allOf:
>          resets:
>            maxItems: 1
>
> +        reset-names: false
> +

With this line, two allOf entries now have the same if condition (contains
enum renesas,rcar-gen3-canfd / renesas,rcar-gen4-canfd), and both set
reset-names: false. The schema accepts and rejects the same nodes as
before.

Could the duplicate be dropped, or the two Gen3/Gen4 blocks be merged into
one? Could the commit message also say that the only real change is the
top-level resets bounds? The duplicate is still there at the end of the
series.

>    - if:
>        properties:
>          compatible:

[ ... ]

-- 
Sashiko AI review ยท https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261015015336.816543-2-mkl%40pengutronix.de
Technical Details
Message-ID: <179211822938.434549.16327090214645030529@kernel.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-347076-linux-kernel-netdev=dewy.ru
References: <20261015015336.816543-19-mkl@pengutronix.de>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-347076-linux-kernel-netdev=dewy.ru
From: netdev-bot+sashiko@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next 18/37] dt-bindings: can: renesas,rcar-canfd:
 Restrict resets in top-level
Date: Fri, 16 Oct 2026 02:37:09 +0000
Organization: Usenet Network
Message-ID: <179211822938.434549.16327090214645030529@kernel.org>
References: <20261015015336.816543-19-mkl@pengutronix.de>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="2671203"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:cQpJVmyqWziQFceA8NpFrr1FKOc= sha256:wR7WjBSRvLRr7XR5aOwiVCPUyWF1IubKhnYK1WsTO3Q=
	sha1:gl3zKNG/YJaJnQ2WB96yaLgf5jY= sha256:UvsgpJ2OObKSLBLvIwfHFCo36lxto0zlGOQ1QKzWXzI=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id EE63811044D; Fri, 16 Oct 2026 05:39:46 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -1.34
X-Spam-Status: No, score=-1.34 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.24, DKIM_SIGNED=0.1,
	DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
	MAILING_LIST_MULTI=-1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001]
	autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=kernel.org
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id kGgwNDIaAAFB;
	Fri, 16 Oct 2026 05:39:44 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-347076-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id E70481103E6; Fri, 16 Oct 2026 05:39:35 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1])
	by sea.lore.kernel.org (Postfix) with ESMTP id 707DE41569; Fri, 16 Oct 2026 02:37:13 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 801823A9619;
	Fri, 16 Oct 2026 02:37:11 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="CqTMLq8n"
X-Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 462633A71B6;
	Fri, 16 Oct 2026 02:37:10 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18
X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
	t=1792118231; cv=none; b=RMsT2543vTStTpA+b1ywxo/gDKSdV4QUVAQT2QZsrshrusBaqOehbUIrMX6hoPt0b2tOoF1FaTx8fJ63Et8zeB54cyyptQIttY18yG9vDKUgzmdp0Qe25mtDVhdk180GpN/sDK2a9SanjkFJKfBrJc2OYnVVra5OaAujXmGfg1c=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
	s=arc-20240116; t=1792118231; c=relaxed/simple;
	bh=S0oR/ksfT/A5SiA9a6RDU2YXmwezsqbzTKtkSZzoOK0=;
	h=Subject:From:To:Cc:Date:Message-ID:In-Reply-To:References:
	 Content-Type:MIME-Version; b=AKHsMy16rTNus+dlVlIJ9A8hU/pbrWUgAW0ON5gPqAWaNS9mmeb3vxU2P+ZS4Uaj/ImF196m2u1XFt4A4ACeaTUEXmwuBEbHB7YQ/C8I6NzPbvkStINAWPHOU8xuM4wyvZjCMTycf7LsYIVJQ94En5syvddHn/UQj+H2qzT9DxM=
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=CqTMLq8n; arc=none smtp.client-ip=100.103.45.18
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id C47B21F000C4;
	Fri, 16 Oct 2026 02:37:09 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1792118230;
	bh=2LNi1N/y6bNeFg3dfIP3bTT1ijZQ8HMVBLcPreeM9YM=;
	h=Subject:From:To:Cc:Date:In-Reply-To:References;
	b=CqTMLq8nCVSQ/bdfWDTE4Y+OM8b91OEt2tEuhwVLQUmZWXFAIkr5CdJq5ZGPok4ji
	 Ok2Q30wJuEERwVkRAJoxcy9XDj+5LzOG1zdpjfk52RxFse9UqzJCBG1YTRgVrfso9Y
	 jzuJRHgef5VqMNeh87LtF8yLmkg3BGK4iXk66c8xMMzuXYuHYd2LnXLQL4NlkTF6ZY
	 Uob41peKSSnNnBMl6L02lnbyRCDd3J9WOi8khmWiSRi9H/0omSesxAHJ+rMpkUGP5Z
	 WRr41EGfsmVoBRXrGVxq3ne33vlVm0aBkGe4HvzaF38blR3GUwr+4t+l9Om6lpbbJk
	 R6MEiH1FB/CQQ==
X-Cc: netdev@vger.kernel.org, davem@davemloft.net, kuba@kernel.org,
 linux-can@vger.kernel.org, kernel@pengutronix.de, socketcan@hartkopp.net,
 kurt.van.dijck@eia.be
X-In-Reply-To: <20261015015336.816543-19-mkl@pengutronix.de>
X-sashiko-severity: Low
X-Precedence: bulk
X-Mailing-List: netdev@vger.kernel.org
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>