Article View: linux.kernel.netdev
Article #3825Re: [PATCH net-next 19/37] dt-bindings: can: renesas,rcar-canfd: Document RZ/G3L SoC
From: netdev-bot+sashiko
Date: Fri, 16 Oct 2026 02:37
Date: Fri, 16 Oct 2026 02:37
118 lines
9578 bytes
9578 bytes
Thank you for your contribution! Sashiko AI review found 2 potential
issue(s) to consider.
Critical: 0 ยท High: 0 ยท Medium: 2 ยท Low: 0
If you believe none of the issues are legitimate, please reply to each
issue of Medium severity or higher and explain why the AI is wrong.
If any of them are legitimate and you plan to respin, please let patchwork
know by including "pw-bot: cr" as a separate line at the end of your reply
(one such reply per series is enough).
- [Medium] The schema does not make `resets` or `reset-names` required
for the new RZ/G3L compatible `renesas,r9a08g046-canfd`.
- [Medium] dt-bindings: missing maxItems constraint for RZ/G3L interrupts
--
dt-bindings: can: renesas,rcar-canfd: Document RZ/G3L SoC
This adds the RZ/G3L (R9A08G046) compatible to the renesas,rcar-canfd
binding. It adds a conditional block for 11 interrupts, 2 resets and 3
channels, and puts the new compatible in the block that disallows
renesas,no-can-fd and renesas,fd-only.
Link: https://patch.msgid.link/20261001075742.21961-2-biju.das.jz@bp.renesas.com
> diff --git a/Documentation/devicetree/bindings/net/can/renesas,rcar-canfd.yaml b/Documentation/devicetree/bindings/net/can/renesas,rcar-canfd.yaml
> index 1a7a9ce45e97..4b94bc8d911b 100644
> --- a/Documentation/devicetree/bindings/net/can/renesas,rcar-canfd.yaml
> +++ b/Documentation/devicetree/bindings/net/can/renesas,rcar-canfd.yaml
[ ... ]
> @@ -294,6 +295,25 @@ allOf:
> patternProperties:
> "^channel[6-7]$": false
>
> + - if:
> + properties:
> + compatible:
> + contains:
> + const: renesas,r9a08g046-canfd
> + then:
> + properties:
> + interrupts:
> + minItems: 11
> +
> + interrupt-names:
> + minItems: 11
> +
> + resets:
> + minItems: 2
[Severity: Medium]
Should this block also cap interrupts and interrupt-names at 11?
The commit message says RZ/G3L has exactly 11 interrupts, but only
minItems: 11 is set here. The upper bound therefore comes from the
top-level interrupts and interrupt-names items lists. Those allow up to
20 entries to cover the six channel parts.
As a result, a renesas,r9a08g046-canfd node listing anywhere from 12 to
20 interrupts, with the matching names for channels 3 to 5, passes
dt_binding_check and dtbs_check. That is inconsistent with this same
block rejecting "^channel[3-7]$" for the SoC, since the extra
interrupts describe channels that cannot exist.
Was the intent to add maxItems: 11 next to minItems: 11 for both
interrupts and interrupt-names? That would pin the count exactly, the
way the other variant blocks bound their interrupt counts.
[Severity: Medium]
Should renesas,r9a08g046-canfd also be in the existing allOf block that
makes resets and reset-names required? Right now that block lists only the
other RZ variants:
- if:
properties:
compatible:
contains:
enum:
- renesas,r9a08g045-canfd
- renesas,r9a09g047-canfd
- renesas,rzg2l-canfd
then:
required:
- resets
- reset-names
The minItems: 2 constraint above only applies when resets is present. The
top-level required list has neither resets nor reset-names. As a result,
an RZ/G3L canfd node with no resets passes dt_binding_check and
dtbs_check.
The driver will not catch the mistake either. rcar_canfd_probe() gets both
resets as optional:
gpriv->rstc1 = devm_reset_control_get_optional_exclusive(dev, "rstp_n");
...
gpriv->rstc2 = devm_reset_control_get_optional_exclusive(dev, "rstc_n");
If the DT leaves out the reset lines, both handles come back NULL. Probe
still succeeds, but the controller is never explicitly taken out of reset.
This is still the case at the end of the series. The required-resets enum
does not include r9a08g046, even after "can: rcar_canfd: Add support for
Renesas RZ/G3L" adds the driver match entry.
> +
> + patternProperties:
> + "^channel[3-7]$": false
> +
[ ... ]
--
Sashiko AI review ยท https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261015015336.816543-2-mkl%40pengutronix.de
Technical Details
Message-ID:
<179211823035.434549.5570001472090611125@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-347077-linux-kernel-netdev=dewy.ruReferences:
<20261015015336.816543-20-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-347077-linux-kernel-netdev=dewy.ru From: netdev-bot+sashiko@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next 19/37] dt-bindings: can: renesas,rcar-canfd: Document RZ/G3L SoC Date: Fri, 16 Oct 2026 02:37:10 +0000 Organization: Usenet Network Message-ID: <179211823035.434549.5570001472090611125@kernel.org> References: <20261015015336.816543-20-mkl@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="2671734"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:sdPwVE92OKv3izBrV6G8MtAjbrc= sha256:fA/qA+HFGbJ93FN0E00BwX+k+vs7Oyb+E/od7Bj0pcQ= sha1:qGLB5ivY0dWmShXJH5zxOnLHPEQ= sha256:Te9fptlr5KdBj3SfRCGM583Y9W5AHA3i/Yg+C1m4xcQ= 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 ACBE511044F; Fri, 16 Oct 2026 05:40:02 +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 gw7xN5yGhQll; Fri, 16 Oct 2026 05:39:59 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-347077-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 865B71103E6; Fri, 16 Oct 2026 05:39:51 +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 6261A4205F; Fri, 16 Oct 2026 02:37:14 +0000 (UTC) X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6FC723A4F4B; Fri, 16 Oct 2026 02:37:12 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="fDHZgIag" 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 3FC6539E6FD; Fri, 16 Oct 2026 02:37:11 +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=1792118232; cv=none; b=rKJL9k5zXjxKxwV5p89f0+XBA9B4NZGw2A77UXbrzhUtZwVPfyxVhWlUEnF2navlX2uCnLsIY+mRWF8npIUeWEqeZhMTF5kEN85BPVC7dk2qWrpxk/vPnu5Lh3ivQtpMv8GQ9amJGJSavk4oHjHo2LjzdzUkmWLRj0peO7FdRgw= X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792118232; c=relaxed/simple; bh=xSj26J1Plae/p35T07snYYf9+nGASOZGBVBzt98m+wU=; h=Subject:From:To:Cc:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=PkhZxsPyk5BdU9ElFwk8JLrvI92zOM0SwIITmxcGa3Fc6u6heebSwYTJ8Cna4YdtvvvkhysbIpuuDQpPj+IgmJtVNW71BPTs8j5gfnpPM5HVoh2z/MDrTWT+V8Ct8RZx0fF3JM1DtEJHhdBiKGPBIoyWxvZrMXPHosEBtNU6ZXo= 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=fDHZgIag; arc=none smtp.client-ip=100.103.45.18 X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id BF3EF1F000C5; Fri, 16 Oct 2026 02:37:10 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1792118231; bh=pAe90VZWnCKWJRrMoyiAefx1L/xwsAfTd/iod2rlGe0=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=fDHZgIag/EdvVjbaWnp6oeahbwjH21JtsfmcYkqUjKsKmShhM3hmDB7JAiYpNPbcn +RMOpvEwIvtJJvW499OsJ8OuqX+lvxTuwjymegrur1+CTh/B1usgCyrgQlzaqbExAc AD9e3peHmM0QgAKzRyoXxJ3oX7PcZOIwKZp25IWCJbM4bKdeiuzC4kedtmwevAx5fK J9x1hZhTUSYLIH0C9gIh8Cnm65KDAQS3h2wOrAoZL/x/xBza8NyRW2r3a0L8bCDvZZ 416+3BHHGIu16kNK37hlLBFsDu9Is0pj1HtjS9KiQhv1e8ZfQ/PNmR4Wt5StSP9tNA /tf2pCmMIu/sQ== 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-20-mkl@pengutronix.de> X-sashiko-severity: Medium 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>