πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #14531

Re: [PATCH net-next 01/12] dt-bindings: can: renesas,rcar-canfd: Document RZ/G3S SoC

#14531
From: netdev-bot+sashiko
Date: Wed, 11 Nov 2026 12:20
105 lines
11502 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] In this patch's tree state, the binding documents
  `renesas,r9a08g045-canfd` as a standalone compatible with no fallback,…

Pre-existing issues:
- [Low] The concern says the RZ/G3S compatible `renesas,r9a08g045-canfd`
  gets the unchanged top-level `clocks`/`clock-names` schema, and that…

--

dt-bindings: can: renesas,rcar-canfd: Document RZ/G3S SoC

This adds the renesas,r9a08g045-canfd compatible for the RZ/G3S CAN FD
controller and adds it to the existing allOf conditional blocks. It also
moves the assigned-clocks/assigned-clock-rates requirement into a new
conditional that exempts RZ/G3S, and disallows renesas,no-can-fd and
renesas,fd-only for RZ/G3S.

Link: https://patch.msgid.link/20260902141544.565763-2-claudiu.beznea+renesas@tuxon.dev

> diff --git a/Documentation/devicetree/bindings/net/can/renesas,rcar-canfd.yaml b/Documentation/devicetree/bindings/net/can/renesas,rcar-canfd.yaml
> index b9d9dd7a79676..bbaaef8f4282e 100644
> --- a/Documentation/devicetree/bindings/net/can/renesas,rcar-canfd.yaml
> +++ b/Documentation/devicetree/bindings/net/can/renesas,rcar-canfd.yaml
> @@ -13,6 +13,7 @@ properties:
>    compatible:
>      oneOf:
>        - enum:
> +          - renesas,r9a08g045-canfd        # RZ/G3S
>            - renesas,r9a09g047-canfd        # RZ/G3E
>            - renesas,r9a09g077-canfd        # RZ/T2H

[Severity: Low]
At this point in the series, does anything bind to this compatible?

The patch adds it as a standalone string with no fallback. However,
rcar_canfd_of_table[] in drivers/net/can/rcar/rcar_canfd.c has no
renesas,r9a08g045-canfd entry yet. An RZ/G3S node that passes validation
would therefore not probe.

A later patch in the series, "can: rcar_canfd: Add support for Renesas
RZ/G3S", appears to fix this by adding:

    { .compatible = "renesas,r9a08g045-canfd", .data = &r9a08g045_hw_info },

[ ... ]

> @@ -350,6 +352,20 @@ allOf:
>        properties:
>          reset-names: false
>  
> +  - if:
> +      properties:
> +        compatible:
> +          contains:
> +            const: renesas,r9a08g045-canfd
> +    then:
> +      properties:
> +        renesas,no-can-fd: false
> +        renesas,fd-only: false
> +    else:
> +      required:
> +        - assigned-clocks
> +        - assigned-clock-rates

[Severity: Low]
This is a pre-existing issue, but should this block also narrow
clock-names for RZ/G3S? The top-level clock-names still accepts both
forms:

  clock-names:
    oneOf:
      - items:
          - const: fck
          - const: canfd
          - const: can_clk
      - items:
          - const: fck
          - const: ram_clk
          - const: can_clk

No allOf entry picks one of these forms per compatible.

The RZ/G3S CPG only supplies the peripheral and RAM clocks. Even so, an
RZ/G3S node that uses the canfd form would still pass dt_binding_check.
The driver would then get a NULL clk_ram from devm_clk_get_optional(),
and the RAM clock would never be enabled.

The renesas,rzg2l-canfd and renesas,r9a09g047-canfd compatibles already
have the same gap.

Requiring the third can_clk entry looks fine, though. The internal
divider setup can be described with a 0 Hz can_clk fixed-clock, as in
r9a07g044.dtsi. The fck fallback that "can: rcar_canfd: Allow the CAN FD
clock to be sourced from fck" adds to rcar_canfd_probe() then handles
that case.

-- 
Sashiko AI review Β· https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261110115112.3807247-2-mkl%40pengutronix.de
Technical Details
Message-ID: <179439961681.2199510.4253042970495028693@kernel.org>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-361049-linux-kernel-netdev=dewy.ru
References: <20261110115112.3807247-2-mkl@pengutronix.de>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-361049-linux-kernel-netdev=dewy.ru
From: netdev-bot+sashiko@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next 01/12] dt-bindings: can: renesas,rcar-canfd:
 Document RZ/G3S SoC
Date: Wed, 11 Nov 2026 12:20:16 +0000
Organization: Usenet Network
Message-ID: <179439961681.2199510.4253042970495028693@kernel.org>
References: <20261110115112.3807247-2-mkl@pengutronix.de>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="849047"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:+E3lzDsZonodAPc3YVnAe4mJA6M= sha256:/2Y/I5JYD17DW6k8344iJhuYkGz094/Y7Khxtga70EE=
	sha1:E/G1W3+SkMeGPnc02L6KboiaNgY= sha256:d5pmTIOB5xsJY8i+DaLbPjKFYSIDaLRqYEmP0LhAh80=
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 08FB4113EDD; Wed, 11 Nov 2026 15:27:16 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.4
X-Spam-Status: No, score=-3.4 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1,
	DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001, URIBL_BLOCKED=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 8Gfoh0Qe2jw8;
	Wed, 11 Nov 2026 15:27:11 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-361049-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 89463113ED9; Wed, 11 Nov 2026 15:27:02 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id 87896168579; Wed, 11 Nov 2026 12:20:21 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1794399619;
	b=V6vkvat0fx5+B5FDEG0fBzlnFxzZaSmrql+Nz2y95C67GgM+NLXcpyBjUlbCkD4BfaQ6
	 wVsFa6I78zJsUOni59FdO8zEY2SecnvsuemKL4uknzXTEwt+bOJ9yJoQA0P+Y60orN49j
	 bwGqkaMNUGiDcYprUuTa+tOnWdXFjphN4VwzeS1yZpSnaNxRSclsluVy8kQy3xUs9QxLU
	 321MnsR6InfT3xPtbYLfIb5jd8AjafQrYw8TaV1x1y2V31RolFYU9NYr6sFSncWfS3cbQ
	 ESSv9XwyEpmCDYmjVJVnF8bvmR7MhrADULQmwzIeKY7tfvByJbKVtVVdfgDe0/+g5mQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794399619;
	h=X-Original-To:Received:Received:DKIM-Signature:Subject:From:To:Cc:
	 Date:Message-ID:In-Reply-To:References:X-sashiko-severity:
	 Content-Type:Content-Transfer-Encoding:X-Mailing-List:List-Id:
	 List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
	 Precedence:MIME-Version;
	bh=hWb41iZm0R0yNMhR+sLYT85PthxOfiiXrl7+TyvZ8Ws=;
	b=hwR/QB4zYNG9T2+YCCoITd3KeZhEFz8LAvfcEQwKT3BMStKLV/OHvFOgmprt3lMO7ceI
	 0DpK7ef9nniHk3Lrb6gYh7ZVxM62ETOarYk9MnN+MKSz3eyaue+MYek93LgV9OPYDRv2D
	 2Oc5tB0CSEqjboLMtdfW6MHgzTvvDLMiZFi1nW+nGETDpSkhyVUYtrlhqs6ckDd3LKrGI
	 nko34fUPSlDmvdSFDI06/x7LOhzV2i4dkfpwSlHSQlcoEfrXIYny7xbje1iPC3KFt3jwX
	 M1k6TpCePkRlMRTSXEXANPdMqje1pkpxvm1gmb+ozBRd5u2Rd2PN8DiAhCB1EGxMURg==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=PH+MMIFM;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 1BC7E606A33B;
	Wed, 11 Nov 2026 12:20:19 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=PH+MMIFM
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1794399618;
	b=AT6pkJ8DA3JaG2OgJEOXa+IJtcMiK9nQ6++PK7IobS0jJMdeb8g7kLd/k9/fGdxUh1wW
	 dpG5ZxqHQHK8GZk67CAyhB70vMOajU3DUQ3tckcwJTmWpQ1HNDqkwUlcbgHE9o/zn4GyL
	 G8FLLlGKSV+jZ96NU7BrfeQqZPgvPKUvgnGrkjsOvQ0h/SGhS22polpALKPZfCTFffqN4
	 1c1GKgh3+dDMjzAcdvS3poRQH16Vq1ezuXQBkKJ0Yu+2pcj+ZLrQcfu3nF8p/VD1dSiDm
	 ub0il12obU9WtPFjCfY+zRyaQ+DskDbOZbRHqQqBG4SMJhtMnHkmDP353TsX/Rl3Ayw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794399618;
	h=Received:DKIM-Signature:Subject:From:To:Cc:Date:Message-ID:
	 In-Reply-To:References:X-sashiko-severity:Content-Type:
	 Content-Transfer-Encoding:MIME-Version;
	bh=hWb41iZm0R0yNMhR+sLYT85PthxOfiiXrl7+TyvZ8Ws=;
	b=K5TN3D5YP5vQoD599rvkqlW0nx20TU5JP9Jk8od+0SS9rZ3NAG1Jqi1bQPuvhImc4HhK
	 Ttx8RwQHvz2VhojMpgN8EG3dQfZmbJ0de6hYpUeJ9Po/apZn6YfX4r+phmGYijvN+NJ3h
	 fdaPvrOWj1jBD/lxdiVa9tgDj/Kep5uw/50Ft/uhcAs3sc5Do0F/OUAab8KU9i/ArBiX6
	 mZrntBt+BdWCimy/8A+JGmBilJJfYF2AD4JrosSbB+bOsHLPr8A9R7mVmurUJK9az/rSB
	 3od3FS9+1rljd6NnREJ+lfgiJS9LJC+gFfmxuOoWRHTNWBVFoXhuGViiBX67mt9+Jhg==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=PH+MMIFM;
	arc=none smtp.remote-ip=100.103.45.18
X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3C501606A324;
	Wed, 11 Nov 2026 12:20:17 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4F8851F00A0A;
	Wed, 11 Nov 2026 12:20:17 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1794399617;
	bh=hWb41iZm0R0yNMhR+sLYT85PthxOfiiXrl7+TyvZ8Ws=;
	h=Subject:From:To:Cc:Date:In-Reply-To:References;
	b=PH+MMIFMmcPHKErf4C+zzI47QjpQwLz1C6t57pLcEpI0W7IHd4tdDu0LtDKvV0VZn
	 wIiEc4GFQntpE85LKtbUSTkYHZjAzzpM8mFTCj1WMHd2CKmg6k2Py9e9k0lkEcrSz+
	 hmRujoGfpg885TfrT8GzO/KkoAcR5StZvAyzKYPnDaHvmRFepognOdXIQfQ5E5Is4O
	 p4W+/EXE/ij34EYfuqMbcjMcWn6w4m/reojFrLmR05pFFmMaYhGimuGr+bwbxlEeUJ
	 njlZi9wvsUKqSD6Y0vnObhdTDXGq0ahgPyiLCYe99DNAKSH8GG+lta6iSLE4AFrEgY
	 lpa3qbGdN8NVg==
X-Cc: netdev@vger.kernel.org, davem@davemloft.net, kuba@kernel.org,
 linux-can@vger.kernel.org, kernel@pengutronix.de,
 claudiu.beznea.uj@bp.renesas.com, geert+renesas@glider.be
X-In-Reply-To: <20261110115112.3807247-2-mkl@pengutronix.de>
X-sashiko-severity: Low
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list